mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-14 09:32:20 +00:00
* GuiViewSource.cpp:
- enable widget in read-only mode. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28271 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
c37f392abd
commit
ded7151f8c
@ -126,6 +126,8 @@ void ViewSourceWidget::updateView()
|
||||
return;
|
||||
}
|
||||
|
||||
setEnabled(true);
|
||||
|
||||
QString content;
|
||||
if (getContent(bv_, viewFullSourceCB->isChecked(), content))
|
||||
document_->setPlainText(content);
|
||||
@ -176,13 +178,11 @@ void GuiViewSource::updateView()
|
||||
|
||||
void GuiViewSource::enableView(bool enable)
|
||||
{
|
||||
if (!enable) {
|
||||
// In the opposite case, updateView() will be called anyway.
|
||||
widget_->setBufferView(bufferview());
|
||||
if (!enable)
|
||||
// In the opposite case, updateView() will be called anyway.
|
||||
widget_->updateView();
|
||||
}
|
||||
widget_->setEnabled(enable);
|
||||
}
|
||||
|
||||
|
||||
bool GuiViewSource::initialiseParams(string const & /*source*/)
|
||||
@ -228,6 +228,7 @@ void GuiViewSource::restoreSession()
|
||||
QSettings settings;
|
||||
widget_->autoUpdateCB->setChecked(
|
||||
settings.value(sessionKey() + "/autoupdate", true).toBool());
|
||||
widget_->updateView();
|
||||
}
|
||||
|
||||
|
||||
|
@ -190,6 +190,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
|
||||
|
||||
- Fix compilation of the modernCV example file.
|
||||
|
Loading…
Reference in New Issue
Block a user