Review Request: Don't connect the same signals to the same slots for the same objects several times.

Aaron Seigo aseigo at kde.org
Tue Mar 9 06:10:20 CET 2010


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/3142/#review4434
-----------------------------------------------------------


thanks Espen; i've committed both patches.

- Aaron


On 2010-03-07 20:36:50, Espen Hustad wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/3142/
> -----------------------------------------------------------
> 
> (Updated 2010-03-07 20:36:50)
> 
> 
> Review request for Plasma.
> 
> 
> Summary
> -------
> 
> Applet::flushPendingConstraintsEvents() is called several times with Plasma::StartupCompletedConstraint as the pending constraint, this leads to multiple connections of the same signals and slots for the same objects. This leads to the double cancel reported in bug #215362. 
> 
> The following patch sets the connectiontype to Qt::UniqueConnection for all the connections, as it doesn't make sense to connect the same signals and slots several times.
> 
> 
> This addresses bug 215362.
>     https://bugs.kde.org/show_bug.cgi?id=215362
> 
> 
> Diffs
> -----
> 
>   svn://anonsvn.kde.org/home/kde/trunk/KDE/kdebase/workspace/plasma/desktop/shell/desktopcorona.cpp 1100546 
> 
> Diff: http://reviewboard.kde.org/r/3142/diff
> 
> 
> Testing
> -------
> 
> Added a few panels and removed them again, the cancel and remove now works as intended.
> 
> 
> Thanks,
> 
> Espen
> 
>



More information about the Plasma-devel mailing list