Revert "Fix the zombie toolbar problem (bug #8520)"

This reverts commit c72c6f8732.
This commit is contained in:
Juergen Spitzmueller 2013-03-21 09:42:32 +01:00
parent 25b8ddf407
commit 13d6d2e2c7
3 changed files with 4 additions and 7 deletions

View File

@ -495,7 +495,7 @@ GuiView::GuiView(int id)
if (lyxrc.allow_geometry_session) {
// Now take care of session management.
if (restoreLayout(true))
if (restoreLayout())
return;
}
@ -616,7 +616,7 @@ void GuiView::saveUISettings() const
}
bool GuiView::restoreLayout(bool force_inittoolbars)
bool GuiView::restoreLayout()
{
QSettings settings;
settings.beginGroup("views");
@ -665,8 +665,7 @@ bool GuiView::restoreLayout(bool force_inittoolbars)
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;

View File

@ -337,7 +337,7 @@ private:
/// 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);
///

View File

@ -129,8 +129,6 @@ What's new
- Fix regression in which clicking in the main work area always resets
the selected format in View -> Source (bug 8411).
- Fix toolbar initialization problems with sessions (bug 8520).
- When selecting text and then using the menu Insert -> Preview, immediately
display the preview (bug 8075).