[PATCH] Fix deref() in KMainWindow not being called

Thomas McGuire thomas.mcguire at gmx.net
Fri Aug 1 19:13:54 BST 2008

On Friday 01 August 2008 19:00:02 Thomas McGuire wrote:
> Hi,
> currently KMail does not quit when the composer was open. This is because
> closing the composer doesn't call deref(), even though KMainWindow is
> supposed to do that for us.
> [..]
> I changed the deref() call
> to happen in the destructor, to ensure it is always called.

Little update: As Rafael suggested, the deref() call is now the last call in 
the destructor, as it might trigger quitting the application.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: deref2.diff
Type: text/x-patch
Size: 1292 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080801/d2698843/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080801/d2698843/attachment.sig>

More information about the kde-core-devel mailing list