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

List:       kde-core-devel
Subject:    Re: [PATCH] kmail leaking KPopupMenus
From:       Guillaume Laurent <glaurent () telegraph-road ! org>
Date:       2003-12-30 12:09:42
Message-ID: 200312301309.42854.glaurent () telegraph-road ! org
[Download RAW message or body]

On Tuesday 30 December 2003 12:26, Rolf Magnus wrote:

> The popup menu is created as child of the list view. When the list view
> itself is deleted, all the children get deleted too, but there is no menu
> to be deleted => boom. It might work by doing a removeChild() afterwards,
> but I'm not sure if that's sufficient.

As far as I know, Qt's object model handles this just fine. When the popup 
menu goes out of scope, it tells its parent about it and is removed from the 
children list.

-- 
						Guillaume.
						http://www.telegraph-road.org
[prev in list] [next in list] [prev in thread] [next in thread] 

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