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

List:       kde-core-devel
Subject:    Re: KStatusBar (was Re: kdelibs feature freeze?)
From:       Sven Radej <sven () lisa ! exp ! univie ! ac ! at>
Date:       2000-03-15 13:34:19
[Download RAW message or body]

On Wed, 15 Mar 2000, Don Sanders wrote:
>Sven I looked into the KMail status bar problems a bit more.
>
>Firstly if KStatusBar doesn't delete the KStatusBarLabels (that is you apply 
>the patch I suggested) then they are still deleted. You can verify this by 
>outputting a debugging message in ~KStatusBarLabel.
>
>Secondly deleting a widget in a qstatusbar causes a segfault you can verify 
>this in qt/examples/widgets
>
>    prog->setProgress( progress );
>    statusBar()->addWidget( prog , 1 );
>+    statusBar()->removeWidget( prog );  // this line is optional
>+    delete prog;                        // always causes segfault
>
>I guess it's a qstatusbar limitation or bug. I'm guessing it's a bug.
>
>Similarly in KStatusBar deleting a KStatusBarLabel in ~KStatusBar causes a 
>segfault.
>
>I could include a bt of the segfault but it's really complicated. Anyway 
>convinced?

OK, convinced :-) I applied your patch and commited.

-- 
Sven Radej      radej@kde.org
KDE developer   Visit http://www.kde.org

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

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