Use the cached value GuiSelection::selection_supported_

That's where it is for.
This commit is contained in:
Vincent van Ravesteijn 2014-04-29 15:17:07 +02:00
parent cee8e61b2e
commit 847d1fb2f5

View File

@ -39,7 +39,7 @@ GuiSelection::GuiSelection()
void GuiSelection::haveSelection(bool own) void GuiSelection::haveSelection(bool own)
{ {
if (!qApp->clipboard()->supportsSelection()) if (!selection_supported_)
return; return;
// Tell qt that we have a selection by setting a dummy selection. // Tell qt that we have a selection by setting a dummy selection.