rem: if(!AkregatorApp::start()) return 0;
add: if (app.isRestored()) { #undef RESTORE #define RESTORE(type) { int n = 1;\ while (KMainWindow::canBeRestored(n)){\ (new type)->restore(n, false);\ n++;}}
context: int main(int argc, char **argv){    Akregator::AboutData about;    KCmdLineArgs::init(argc, argv, &about);    KCmdLineArgs::addCmdLineOptions( Akregator::akregator_options );    KUniqueApplication::addCmdLineOptions();    // start knotifyclient if not already started. makes it work for people who doesn't use full kde, according to kmail devels    KNotifyClient::startDaemon();    if(!AkregatorApp::start())      return 0;    AkregatorApp app;    bool ret = app.exec();    while ( KMainWindow::memberList->first() )        delete KMainWindow::memberList->first();    return ret;}