From: Vincent van Ravesteijn Date: Tue, 31 Mar 2009 15:29:51 +0000 (+0000) Subject: Fix bug that the view source window remains disabled forever when autoUpdate is not... X-Git-Tag: 2.0.0~6977 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=14d0e66eae4d4a17e0e41100baf0d070c16c6865;p=features.git Fix bug that the view source window remains disabled forever when autoUpdate is not checked and the view source window gets disabled or LyX is closed. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28992 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiViewSource.cpp b/src/frontends/qt4/GuiViewSource.cpp index 364512d15a..93c777b3bb 100644 --- a/src/frontends/qt4/GuiViewSource.cpp +++ b/src/frontends/qt4/GuiViewSource.cpp @@ -169,7 +169,7 @@ GuiViewSource::~GuiViewSource() void GuiViewSource::updateView() { - if (widget_->autoUpdateCB->isChecked()) { + if (!widget_->isEnabled() || widget_->autoUpdateCB->isChecked()) { widget_->setBufferView(bufferview()); widget_->updateView(); }