From 13d6d2e2c7abb170d44a634885ea8d47412f9eca Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Thu, 21 Mar 2013 09:42:32 +0100 Subject: [PATCH] Revert "Fix the zombie toolbar problem (bug #8520)" This reverts commit c72c6f8732f984084b64e320152a1e3147a053a0. --- src/frontends/qt4/GuiView.cpp | 7 +++---- src/frontends/qt4/GuiView.h | 2 +- status.20x | 2 -- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 0d0f0c1cad..42716192a7 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -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; diff --git a/src/frontends/qt4/GuiView.h b/src/frontends/qt4/GuiView.h index 03fca2f9af..667ce60788 100644 --- a/src/frontends/qt4/GuiView.h +++ b/src/frontends/qt4/GuiView.h @@ -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); /// diff --git a/status.20x b/status.20x index d218cb1e2c..a3a6159508 100644 --- a/status.20x +++ b/status.20x @@ -128,8 +128,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).