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

List:       kde-commits
Subject:    extragear/graphics/digikam/utilities/fuzzysearch
From:       Andi Clemens <andi.clemens () gmx ! net>
Date:       2009-06-16 12:33:44
Message-ID: 1245155624.712220.27841.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 982611 by aclemens:

Disconnect model when calling this slot to avoid multiple connections.
The slot slotUpdateAlbumSelectBox is only called when digiKam is started
or the database path was changed in the setup. To avoid any duplicate
connections, try to disconnect first when the model has been already
assigned.

 M  +3 -0      findduplicatesview.cpp  


--- trunk/extragear/graphics/digikam/utilities/fuzzysearch/findduplicatesview.cpp #982610:982611
@@ -252,6 +252,9 @@
 
 void FindDuplicatesView::slotUpdateAlbumSelectBox()
 {
+    if (d->model)
+        disconnect(d->model, 0, this, 0);
+
     d->albumSelectCB->setDefaultAlbumModels();
     d->model = d->albumSelectCB->model();
     d->albumSelectCB->view()->expandToDepth(0);
[prev in list] [next in list] [prev in thread] [next in thread] 

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