X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fsignalproxy.cpp;h=baf109cc6d20e99e41e312aa3124666a55420f12;hp=5c2f20e0cef4e9f94e3d3abe8b7461daf361d352;hb=cdb35a61107244b7a424c182364f07e1f9bea35a;hpb=2d19986a8bafafec55b5d3b0474f7d76eb5f33b2 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; }