]> git.lyx.org Git - lyx.git/commitdiff
Use the cached value GuiSelection::selection_supported_
authorVincent van Ravesteijn <vfr@lyx.org>
Tue, 29 Apr 2014 13:17:07 +0000 (15:17 +0200)
committerVincent van Ravesteijn <vfr@lyx.org>
Tue, 29 Apr 2014 13:17:15 +0000 (15:17 +0200)
That's where it is for.

src/frontends/qt4/GuiSelection.cpp

index 362da4aba54d1c9c074c19ca974aa6fd3fdc3721..fef258c326a4dc89434e6991babcde79d2f5f64e 100644 (file)
@@ -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.