Don't store virtual desktop settings while loading them
fwd-port of a2d4c3ebdf7137f3543c88245f0bfd3dba308ebf CCBUG: 272666
This commit is contained in:
parent
ff889337e2
commit
2534acc961
1 changed files with 5 additions and 0 deletions
|
@ -1173,8 +1173,10 @@ void Workspace::slotReinitCompositing()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static bool _loading_desktop_settings = false;
|
||||||
void Workspace::loadDesktopSettings()
|
void Workspace::loadDesktopSettings()
|
||||||
{
|
{
|
||||||
|
_loading_desktop_settings = true;
|
||||||
KSharedConfig::Ptr c = KGlobal::config();
|
KSharedConfig::Ptr c = KGlobal::config();
|
||||||
QString groupname;
|
QString groupname;
|
||||||
if (screen_number == 0)
|
if (screen_number == 0)
|
||||||
|
@ -1189,10 +1191,13 @@ void Workspace::loadDesktopSettings()
|
||||||
rootInfo->setDesktopName(i, s.toUtf8().data());
|
rootInfo->setDesktopName(i, s.toUtf8().data());
|
||||||
desktop_focus_chain[i-1] = i;
|
desktop_focus_chain[i-1] = i;
|
||||||
}
|
}
|
||||||
|
_loading_desktop_settings = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Workspace::saveDesktopSettings()
|
void Workspace::saveDesktopSettings()
|
||||||
{
|
{
|
||||||
|
if (_loading_desktop_settings)
|
||||||
|
return;
|
||||||
KSharedConfig::Ptr c = KGlobal::config();
|
KSharedConfig::Ptr c = KGlobal::config();
|
||||||
QString groupname;
|
QString groupname;
|
||||||
if (screen_number == 0)
|
if (screen_number == 0)
|
||||||
|
|
Loading…
Reference in a new issue