]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/GuiToolbar.cpp
This comment introduced in r37075 was wrong. We should never end up here!
[features.git] / src / frontends / qt4 / GuiToolbar.cpp
index 93ea4c75525ce68b0d252b8596217fba8db0b760..bea9b551b8b13d12610616572038dc673c66e7d8 100644 (file)
@@ -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()));
        }