Make the toolbar code less noisy when the session file is not found

This commit is contained in:
Jean-Marc Lasgouttes 2012-07-16 23:11:26 +02:00
parent 2e1c618824
commit 02ce050fb8

View File

@ -358,7 +358,7 @@ void GuiToolbar::restoreSession()
settings.value(sessionKey() + "/visibility", error_val).toInt();
if (visibility == error_val || visibility == 0) {
// This should not happen, but in case we use the defaults
LYXERR0("Session settings could not be found! Defaults are used instead.");
LYXERR(Debug::GUI, "Session settings could not be found! Defaults are used instead.");
visibility =
guiApp->toolbars().defaultVisibility(fromqstr(objectName()));
}