From: Vincent van Ravesteijn Date: Tue, 29 Apr 2014 13:17:07 +0000 (+0200) Subject: Use the cached value GuiSelection::selection_supported_ X-Git-Tag: 2.2.0alpha1~1990 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=847d1fb2f5829d1a4bb1302b6a9555265796ada9;p=lyx.git Use the cached value GuiSelection::selection_supported_ That's where it is for. --- diff --git a/src/frontends/qt4/GuiSelection.cpp b/src/frontends/qt4/GuiSelection.cpp index 362da4aba5..fef258c326 100644 --- a/src/frontends/qt4/GuiSelection.cpp +++ b/src/frontends/qt4/GuiSelection.cpp @@ -39,7 +39,7 @@ GuiSelection::GuiSelection() void GuiSelection::haveSelection(bool own) { - if (!qApp->clipboard()->supportsSelection()) + if (!selection_supported_) return; // Tell qt that we have a selection by setting a dummy selection.