]> git.lyx.org Git - features.git/commitdiff
Enable dialogs that can apply for read-only documents.
authorVincent van Ravesteijn <vfr@lyx.org>
Sat, 11 Apr 2009 18:34:03 +0000 (18:34 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Sat, 11 Apr 2009 18:34:03 +0000 (18:34 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29217 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/Dialog.cpp

index d1ff82fc7f4d1f13ca9af65034e17772f08447ad..6839d7378ff0b075d8ca796c749eec21bff62048 100644 (file)
@@ -228,7 +228,7 @@ void Dialog::checkStatus()
        // check whether this dialog may be active
        if (canApply()) {
                bool const readonly = isBufferReadonly();
-               enableView(!readonly);
+               enableView(!readonly || canApplyToReadOnly());
                // refreshReadOnly() is too generous in _enabling_ widgets
                // update dialog to disable disabled widgets again