From: Vincent van Ravesteijn Date: Thu, 31 Dec 2009 16:43:43 +0000 (+0000) Subject: Update the view also when the document is read-only. X-Git-Tag: 2.0.0~4659 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=6a5a1726d7fde829306684d3165f37e683449290;p=features.git Update the view also when the document is read-only. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32694 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/Dialog.cpp b/src/frontends/qt4/Dialog.cpp index 15aeca52b2..65d4a55981 100644 --- a/src/frontends/qt4/Dialog.cpp +++ b/src/frontends/qt4/Dialog.cpp @@ -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); }