rendered paste body KPassivePopup *pop = new KPassivePopup( window );
popupList.append(pop);
KVBox *vb = new KVBox( pop );
new QLabel( vb, i18n("Konqueror wasn't closed cleanly last time. Would you like to restore session?") );
KHBox *box = new KHBox( vb );
QPushButton *restore = new QPushButton( "Restore session", box );
QPushButton *doNotRestore = new QPushButton( "No / Restore ater", box );
connect(restore, SIGNAL(clicked()), this, SLOT(restoreSessions()));
connect(doNotRestore, SIGNAL(clicked()), this, SLOT(doNotRestoreSessions()));
connect(restore, SIGNAL(clicked()), this, SLOT(closePopups()));
connect(doNotRestore, SIGNAL(clicked()), this, SLOT(closePopups()));
pop->setView( vb );
pop->setAutoDelete( true );
pop->setPopupStyle ( 1 );
QSize size = window->size();
pop->show ( QPoint(size.width(), 0) );
}