[PATCH] Bug in DataEngine::sourceRemoved()

Dmitry Suzdalev dimsuzkde at gmail.com
Fri Mar 21 12:16:52 CET 2008


Hi!

Just noticed that DataEngine emits sourceRemoved *before* actually removing a source 
from sources map.
That leads to the issue that in my applet's slot which is connected to sourceRemoved,
method DataEngine::sources() still has that source as a valid one (although it will 
be removed in a few moments).

This is an unexpected behaviour imo => to get notification that source was removed 
and then still be able to find that source in the sources list.

Patch that does the right thing is attached. ok to commit?

Cheers,
Dmitry.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dataengine-fix.diff
Type: text/x-patch
Size: 478 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20080321/600d46b9/attachment.bin 


More information about the Panel-devel mailing list