removed workaround for qt-2.1b3

svn path=/trunk/kdebase/ksmserver/; revision=57371
This commit is contained in:
Matthias Ettrich 2000-07-16 19:09:09 +00:00
parent dea089ee3b
commit 3b707063bf

View file

@ -167,7 +167,7 @@ void Application::commitData( QSessionManager& /*sm*/ )
void Application::saveState( QSessionManager& sm )
{
KApplication::saveState( sm );
static bool firstTime = false;
static bool firstTime = true;
if ( firstTime ) {
firstTime = false;
return; // no need to save this state.
@ -175,14 +175,10 @@ void Application::saveState( QSessionManager& sm )
sm.release();
// we really should do phase 2 here, unfortunately qt-2.1beta3 contains a bug.
// #######TODO FIXME with final Qt-2.1
/*
if ( !sm.isPhase2() ) {
sm.requestPhase2();
return;
sm.requestPhase2();
return;
}
*/
workspaces.first()->storeSession( kapp->sessionConfig() );
kapp->sessionConfig()->sync();