[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Stuck on session restore
From:       Lindsay Mathieson <lindsay.mathieson () gmail ! com>
Date:       2013-08-10 2:45:35
Message-ID: 1515644.gkRLSZN0eY () lindsay-office
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


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" (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic