Commit 34b2e1ba authored by Geoffry Song's avatar Geoffry Song
Browse files

Grey out copy option for empty text selections

parent 395d7163
......@@ -2624,6 +2624,11 @@ void PageView::mouseReleaseEvent( QMouseEvent * e )
textToClipboard->setEnabled( false );
textToClipboard->setText( i18n("Copy forbidden by DRM") );
}
else if ( d->selectedText().isEmpty() )
{
textToClipboard->setEnabled( false );
textToClipboard->setText( i18n("Nothing to copy") );
}
else
{
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