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

List:       kopete-devel
Subject:    Re: [kopete-devel] Fwd: kopete walletmanager static destruction
From:       David Faure <faure () kde ! org>
Date:       2008-10-29 16:47:06
Message-ID: 200810291747.06963.faure () kde ! org
[Download RAW message or body]

On Tuesday 28 October 2008, Thiago Macieira forwarded a message from Michael saying:
> To fix this I made a patch for kopete some while ago (attached). It changes 
> the WalletManager instance from function static to a static class member. 
> Destruction is handled by connecting the aboutToQuit() signal to the 
> instance's deleteLater() slot.

No need for class-static, just make it file-static (which leaves the .h untouched).

Are you sure the deleteLater has time to proceed though? 
Ah, it works because QApp flushes pending deletions before exiting for good, IIRC?


> Now the main problem is that Kopete's connection to the wallet is never 
> terminated leaving the wallet open unless the user has configured a timer to 
> close it after a specified interval.

So, exactly the same problem happens if kopete crashes, right?

-- 
David Faure, faure@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
_______________________________________________
kopete-devel mailing list
kopete-devel@kde.org
https://mail.kde.org/mailman/listinfo/kopete-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

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