]> git.lyx.org Git - features.git/commitdiff
Update the view also when the document is read-only.
authorVincent van Ravesteijn <vfr@lyx.org>
Thu, 31 Dec 2009 16:43:43 +0000 (16:43 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Thu, 31 Dec 2009 16:43:43 +0000 (16:43 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32694 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/Dialog.cpp

index 15aeca52b2c030c4eab60aedd97188988e0fb340..65d4a5598141dbb3471e02af0c1471a2e638051c 100644 (file)
@@ -218,7 +218,7 @@ Inset const * Dialog::inset(InsetCode code) const
 
 void Dialog::checkStatus()
 {
-       // buffer independant dialogs are always active.
+       // buffer independent dialogs are always active.
        // This check allows us leave canApply unimplemented for some dialogs.
        if (!isBufferDependent()) {
                updateView();
@@ -238,9 +238,7 @@ void Dialog::checkStatus()
                // refreshReadOnly() is too generous in _enabling_ widgets
                // update dialog to disable disabled widgets again
 
-               if (!readonly || canApplyToReadOnly())
-                       updateView();
-
+               updateView();
        } else
                enableView(false);
 }