Replace sessionConfig()

svn path=/trunk/KDE/kdebase/workspace/; revision=481342
This commit is contained in:
Laurent Montel 2005-11-18 21:05:14 +00:00
parent f5c680a6e0
commit 0695439fe1
2 changed files with 5 additions and 5 deletions

8
sm.cpp
View file

@ -42,13 +42,13 @@ bool SessionManaged::saveState( QSessionManager& sm )
{
Workspace::self()->sessionSaveStarted();
if( ksmserver ) // save stacking order etc. before "save file?" etc. dialogs change it
Workspace::self()->storeSession( kapp->sessionConfig(), SMSavePhase0 );
Workspace::self()->storeSession( KGlobal::config(), SMSavePhase0 );
sm.release(); // Qt doesn't automatically release in this case (bug?)
sm.requestPhase2();
return true;
}
Workspace::self()->storeSession( kapp->sessionConfig(), ksmserver ? SMSavePhase2 : SMSavePhase2Full );
kapp->sessionConfig()->sync();
Workspace::self()->storeSession( KGlobal::config(), ksmserver ? SMSavePhase2 : SMSavePhase2Full );
KGlobal::config()->sync();
return true;
}
@ -148,7 +148,7 @@ void Workspace::storeSession( KConfig* config, SMSavePhase phase )
void Workspace::loadSessionInfo()
{
session.clear();
KConfig* config = kapp->sessionConfig();
KConfig* config = KGlobal::config();
config->setGroup("Session" );
int count = config->readNumEntry( "count" );
int active_client = config->readNumEntry( "active" );

View file

@ -316,7 +316,7 @@ void Workspace::init()
initial_desktop = client_info.currentDesktop();
else
{
KConfigGroup group( kapp->sessionConfig(), "Session" );
KConfigGroup group( KGlobal::config() , "Session" );
initial_desktop = group.readNumEntry( "desktop", 1 );
}
if( !setCurrentDesktop( initial_desktop ))