rem: app.sessionConfig();
add: if ( app.isRestored() ) { RESTORE( KOrganizer ) }
context: int main ( int argc, char **argv ){  KOrg::AboutData aboutData;  KCmdLineArgs::init( argc, argv, &aboutData );  KCmdLineArgs::addCmdLineOptions( korganizer_options );  KUniqueApplication::addCmdLineOptions();  if ( !KOrganizerApp::start() ) return 0;  KOrganizerApp app;  KGlobal::locale()->insertCatalogue( "libkcal" );  KGlobal::locale()->insertCatalogue( "libkdepim" );  KGlobal::locale()->insertCatalogue( "kdgantt" );  // This is a workaround for a session management problem with KUniqueApplication  // The session ID gets reset before the restoration is called. This line makes  // sure that the config object is created right away  (with the correct config  // file name). Thanks to Lubos Lunak.  app.sessionConfig();  return app.exec();}