setEnabled(false);
return;
}
- if (autoUpdateCB->isChecked())
- document_->setPlainText(controller_.getContent(
- viewFullSourceCB->isChecked()));
+ document_->setPlainText(controller_.getContent(
+ viewFullSourceCB->isChecked()));
GuiViewSource::Row row = controller_.getRows();
QTextCursor c = QTextCursor(viewSourceTV->document());
void GuiViewSource::updateView()
{
- widget_->updateView();
+ if (widget_->autoUpdateCB->isChecked())
+ widget_->updateView();
}
Dialog::restoreSession();
QSettings settings;
widget_->viewFullSourceCB->setChecked(
- settings.value(sessionKey() + "/fullsource").toBool());
+ settings.value(sessionKey() + "/fullsource", false).toBool());
widget_->autoUpdateCB->setChecked(
- settings.value(sessionKey() + "/autoupdate").toBool());
+ settings.value(sessionKey() + "/autoupdate", true).toBool());
}