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
This commit is contained in:
Vincent van Ravesteijn 2009-03-31 15:29:51 +00:00
parent c0ad52551d
commit 14d0e66eae

View File

@ -169,7 +169,7 @@ GuiViewSource::~GuiViewSource()
void GuiViewSource::updateView()
{
if (widget_->autoUpdateCB->isChecked()) {
if (!widget_->isEnabled() || widget_->autoUpdateCB->isChecked()) {
widget_->setBufferView(bufferview());
widget_->updateView();
}