From 46d7462ea7b368de0926b57ad011a3602c205dd4 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Mon, 3 Jan 2011 15:56:27 +0000 Subject: [PATCH] This comment introduced in r37075 was wrong. We should never end up here! However, it cannot hurt to warn the user and fall back to the defaults in case. The real cause of bug #7099 is something else (which I will fix soon). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37076 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiToolbar.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/frontends/qt4/GuiToolbar.cpp b/src/frontends/qt4/GuiToolbar.cpp index 93ea4c7552..bea9b551b8 100644 --- a/src/frontends/qt4/GuiToolbar.cpp +++ b/src/frontends/qt4/GuiToolbar.cpp @@ -330,9 +330,9 @@ void GuiToolbar::restoreSession() int visibility = settings.value(sessionKey() + "/visibility", error_val).toInt(); if (visibility == error_val || visibility == 0) { - // The settings have not been found. This can happen when - // the ui file has changed so that we use the settings from - // the new ui file rather than the old settings. + // This should not happen, but in case we use the defaults + LYXERR0("Session settings could not be found!. " + "Defaults are used instead"); visibility = guiApp->toolbars().defaultVisibility(fromqstr(objectName())); }