if (lyxrc.allow_geometry_session) {
// Now take care of session management.
- if (restoreLayout(true))
+ if (restoreLayout()) {
+ initToolbars();
return;
+ }
}
// no session handling, default to a sane size.
}
-bool GuiView::restoreLayout(bool force_inittoolbars)
+bool GuiView::restoreLayout()
{
QSettings settings;
settings.beginGroup("views");
if ((dialog = findOrBuild("findreplaceadv", true)))
dialog->prepareView();
- if (!restoreState(settings.value("layout").toByteArray(), 0)
- || force_inittoolbars)
+ if (!restoreState(settings.value("layout").toByteArray(), 0))
initToolbars();
updateDialogs();
return true;
/// Saves the settings of toolbars and all dialogs
void saveUISettings() const;
///
- bool restoreLayout(bool force_inittoolbars = false);
+ bool restoreLayout();
///
GuiToolbar * toolbar(std::string const & name);
///