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

List:       kde-panel-devel
Subject:    Re: Containments, Layouts [destroy() BUG?]
From:       Oszkar Ambrus <oszkar.ambrus () deri ! org>
Date:       2008-06-05 16:17:20
Message-ID: 48481EE9.7010706 () deri ! org
[Download RAW message or body]


>>>>> But now I might have found a bug: I have some context menus for my
>>>>> applets, by which they can be removed.
>>>>> I connected the triggered signal to the applet's destroy slot. If I
>>>>> remove two applets on after the other, then the application crashes. If
>>>>> I wait for a few seconds, that everything's ok.
>>>>> Is there an explanation for this?
>>>>>       
>>>>>           
>>     This error has reappeared lately.
>> Sometimes it occurs even on the first element removed, but usually on 
>> the second.
>> And I can't provide a backtrace, because it doesn't crash, it just hangs.
>>
>> Is this an Applet problem? I've seen that appletAnimationComplete() is 
>> only called when animationFinished() is emitted.
>> But in my case the removed applet doesn't disappear entirely, it just 
>> shrinks, and then my application freezes.
>>
>> Any suggestions?
>>
>>   
>>     
> Sorry for posting this in two emails.
> The application hangs in graphicsview/qgraphicswidget_p.cpp in 
> fixFocusChainBeforeReparenting() in the while loop.
> Does it mean I didn't set the parents as I should have?
>   

It turns out, I'd added a Label to the Applet object outside of any 
Layout. After removing that everything works fine.
>> Thanks,
>> Oszkar_______________________________________________
>> Panel-devel mailing list
>> Panel-devel@kde.org
>> https://mail.kde.org/mailman/listinfo/panel-devel
>>
>>   
>>     
> _______________________________________________
> Panel-devel mailing list
> Panel-devel@kde.org
> https://mail.kde.org/mailman/listinfo/panel-devel
>
>   
_______________________________________________
Panel-devel mailing list
Panel-devel@kde.org
https://mail.kde.org/mailman/listinfo/panel-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

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