]> git.lyx.org Git - features.git/commitdiff
This makes the FindAndReplace replace-related buttons de-activate
authorTommaso Cucinotta <tommaso@lyx.org>
Sat, 7 Jan 2012 11:41:04 +0000 (11:41 +0000)
committerTommaso Cucinotta <tommaso@lyx.org>
Sat, 7 Jan 2012 11:41:04 +0000 (11:41 +0000)
also when switching from an editable buffer to a read-only buffer,
without waiting for the moment in which the dialog is focused.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40582 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/FindAndReplace.h

index d2eaf4c1a166c3fcdf83ca498bdd19faad0c54d8..354278b9af53da8905346b511ed95da49981423e 100644 (file)
@@ -87,7 +87,8 @@ public:
        bool initialiseParams(std::string const &);
        void clearParams() {}
        void dispatchParams() {}
-       bool isBufferDependent() const { return true; }
+       bool isBufferDependent() const { return false; }
+       bool canApplyToReadOnly() const { return true; }
        void selectAll();
 
        /// update