]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiSelection.h
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / GuiSelection.h
index f76dc2642c99cf92e4613a2e0cafc7aec428c9a3..1567b3e697f5f4734e6bcae98fa30542270686d2 100644 (file)
@@ -37,16 +37,13 @@ public:
        void haveSelection(bool own);
        docstring const get() const;
        void put(docstring const & str);
-       bool empty();
+       bool empty() const;
        //@}
 
 private Q_SLOTS:
        void on_dataChanged();
 
 private:
-       // Cache which is to speed up selection-status read
-       // (4 calls when openi Edit menu).
-       bool text_selection_empty_;
        // Direct call clipboard()->text(QClipboard::Selection) inside onDataChanged causes
        // selection to be obtained. Now imagine the some LyX instance A, when making selection -
        // each change triggers onDataChange in all others instances for each mouse
@@ -54,7 +51,7 @@ private:
        // which interferes with the selecting itself. As a result middle button pasting
        // for more instances don't work and debugging is a hell. So we just schedule
        // obtaining of selection on the time empty() is actually called.
-       bool schedule_check_;
+       mutable bool schedule_check_;
        bool const selection_supported_;
 };