mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 10:22:49 +00:00
kwin: call KApplication::saveSession() before saving session
see the warning in the KApplication::saveSession() implementation why that is done Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
de89beae46
commit
4b7ecbde0a
1 changed files with 4 additions and 1 deletions
|
@ -276,13 +276,16 @@ bool Application::setup()
|
|||
|
||||
bool Application::saveSession()
|
||||
{
|
||||
if (!KApplication::saveSession()) {
|
||||
return false;
|
||||
}
|
||||
Workspace::self()->sessionSaveStarted();
|
||||
RuleBook::self()->setUpdatesDisabled(true);
|
||||
Workspace::self()->storeSession(kapp->sessionConfig());
|
||||
kapp->sessionConfig()->sync();
|
||||
RuleBook::self()->setUpdatesDisabled(false); // re-enable
|
||||
Workspace::self()->sessionSaveDone();
|
||||
return KApplication::saveSession();
|
||||
return true;
|
||||
}
|
||||
|
||||
void Application::lostSelection()
|
||||
|
|
Loading…
Add table
Reference in a new issue