Commit 4877786a authored by Geoffry Song's avatar Geoffry Song
Browse files

Revert "Grey out copy option for empty text selections"

This reverts commit 34b2e1ba.

this was a mistake (it also adds a new string)
parent 88804399
...@@ -2624,11 +2624,6 @@ void PageView::mouseReleaseEvent( QMouseEvent * e ) ...@@ -2624,11 +2624,6 @@ void PageView::mouseReleaseEvent( QMouseEvent * e )
textToClipboard->setEnabled( false ); textToClipboard->setEnabled( false );
textToClipboard->setText( i18n("Copy forbidden by DRM") ); textToClipboard->setText( i18n("Copy forbidden by DRM") );
} }
else if ( d->selectedText().isEmpty() )
{
textToClipboard->setEnabled( false );
textToClipboard->setText( i18n("Nothing to copy") );
}
else else
{ {
addWebShortcutsMenu( &menu, d->selectedText() ); addWebShortcutsMenu( &menu, d->selectedText() );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment