mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
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
This commit is contained in:
parent
94ede89c57
commit
46d7462ea7
@ -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()));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user