From: Marcus Eggenberger Date: Thu, 31 Jan 2008 23:57:39 +0000 (+0000) Subject: fixed a bug in the SignalProxy X-Git-Tag: 0.2.0-alpha1~157 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=cdb35a61107244b7a424c182364f07e1f9bea35a fixed a bug in the SignalProxy --- diff --git a/src/common/signalproxy.cpp b/src/common/signalproxy.cpp index 5c2f20e0..baf109cc 100644 --- a/src/common/signalproxy.cpp +++ b/src/common/signalproxy.cpp @@ -555,7 +555,7 @@ void SignalProxy::stopSync(SyncableObject* obj) { // gladly the objectName() is still valid. So we have only to iterate over the classes not each instance! *sigh* QHash::iterator classIter = _syncSlave.begin(); while(classIter != _syncSlave.end()) { - if(classIter->contains(obj->objectName())) { + if(classIter->contains(obj->objectName()) && classIter.value()[obj->objectName()] == obj) { classIter->remove(obj->objectName()); break; }