From 14d0e66eae4d4a17e0e41100baf0d070c16c6865 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Tue, 31 Mar 2009 15:29:51 +0000 Subject: [PATCH] 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 --- src/frontends/qt4/GuiViewSource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.39.2