Author: vfr Date: Tue Mar 31 17:29:51 2009 New Revision: 28992 URL: http://www.lyx.org/trac/changeset/28992 Log: 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. Modified: lyx-devel/trunk/src/frontends/qt4/GuiViewSource.cpp Modified: lyx-devel/trunk/src/frontends/qt4/GuiViewSource.cpp ============================================================================== --- lyx-devel/trunk/src/frontends/qt4/GuiViewSource.cpp Tue Mar 31 16:53:29 2009 (r28991) +++ lyx-devel/trunk/src/frontends/qt4/GuiViewSource.cpp Tue Mar 31 17:29:51 2009 (r28992) @@ -169,7 +169,7 @@ void GuiViewSource::updateView() { - if (widget_->autoUpdateCB->isChecked()) { + if (!widget_->isEnabled() || widget_->autoUpdateCB->isChecked()) { widget_->setBufferView(bufferview()); widget_->updateView(); }
To branch ? Vincent