I'm trying to add session restore to kleopatra and am completely stuck on it. The appropriate functions are being called but it appears to be passed the wrong session id each time.
I started of with RESTORE( MainWindow ); then expanded it to: int n = 1; while ( KMainWindow::canBeRestored(n) ) { kDebug() << "Restoring window " << n; MainWindow *w = new MainWindow; w->restore(n); n++; } Not working. Then added in some debug output: kDebug() << "SESSSION Id = :" << kapp->sessionId() << ":"; kDebug() << "SESSSION Key = :" << kapp->sessionKey() << ":"; KConfig *config = kapp->sessionConfig(); kDebug() << "Session Config Name = " << config->name(); SessionId, SessionKey and config->name all macthed, but they did *not* match the session key that was used to restore the application, as reported by the process list. the session config file its trying to read does not exist and hence just defaults are used. Any suggestions as to how to proceed? thanks, -- Lindsay
signature.asc
Description: This is a digitally signed message part.
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<