From: Tommaso Cucinotta Date: Sat, 7 Jan 2012 11:41:04 +0000 (+0000) Subject: This makes the FindAndReplace replace-related buttons de-activate X-Git-Tag: 2.1.0beta1~2144 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b4aadacc23ce68acd46920c17b023e6bd55d0326;p=features.git This makes the FindAndReplace replace-related buttons de-activate 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 --- diff --git a/src/frontends/qt4/FindAndReplace.h b/src/frontends/qt4/FindAndReplace.h index d2eaf4c1a1..354278b9af 100644 --- a/src/frontends/qt4/FindAndReplace.h +++ b/src/frontends/qt4/FindAndReplace.h @@ -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