rem: if ( mMainWindow ) { mMainWindow->show(); KWin::forceActiveWindow( mMainWindow->winId() ); KStartupInfo::appStarted(); } else {
add: if ( !mMainWindow ) {
context: int KontactApp::newInstance(){  // show splash#if (QT_VERSION-0 >= 0x030200)  QPixmap splashPixmap( UserIcon( "splash" ) );  QSplashScreen *splash = new QSplashScreen( splashPixmap );  splash->show();#else  Kontact::Splash *splash = new Kontact::Splash( 0, "splash" );  splash->show();#endif  if ( isRestored() ) {    // There can only be one main window    if ( KMainWindow::canBeRestored( 1 ) ) {      mMainWindow = new Kontact::MainWindow;      mMainWindow->show();      mMainWindow->restore( 1 );    }  } else {    if ( mMainWindow ) {      mMainWindow->show();      KWin::forceActiveWindow( mMainWindow->winId() );      KStartupInfo::appStarted();    } else {      mMainWindow = new Kontact::MainWindow;      mMainWindow->show();    }  }  delete splash;  return 0;}