diff --git a/src/frontends/qt4/GuiViewSource.cpp b/src/frontends/qt4/GuiViewSource.cpp index ae5d9ff4b9..0eef48500e 100644 --- a/src/frontends/qt4/GuiViewSource.cpp +++ b/src/frontends/qt4/GuiViewSource.cpp @@ -125,6 +125,8 @@ void ViewSourceWidget::updateView() setEnabled(false); return; } + + setEnabled(true); QString content; if (getContent(bv_, viewFullSourceCB->isChecked(), content)) @@ -176,12 +178,10 @@ void GuiViewSource::updateView() void GuiViewSource::enableView(bool enable) { - if (!enable) { + widget_->setBufferView(bufferview()); + if (!enable) // In the opposite case, updateView() will be called anyway. - widget_->setBufferView(bufferview()); widget_->updateView(); - } - widget_->setEnabled(enable); } @@ -228,6 +228,7 @@ void GuiViewSource::restoreSession() QSettings settings; widget_->autoUpdateCB->setChecked( settings.value(sessionKey() + "/autoupdate", true).toBool()); + widget_->updateView(); } diff --git a/status.16x b/status.16x index 6bd6f1e1f7..65262ddb2a 100644 --- a/status.16x +++ b/status.16x @@ -189,6 +189,9 @@ What's new - Fix handling of $$p variable in converters configuration. Introduce $$r variable for the original input file. + +- Enable view-source widget for read-only documents. + * DOCUMENTATION AND LOCALIZATION