X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fsyncableobject.cpp;h=ebe6ca0e17e713e0d49cabc6a44ffcb6d02d73cb;hb=92789e6323ca73383a7954d834ecfc093234f5e2;hp=426bc86cf28dd3d8f122a7e85285c6af44c5e87c;hpb=997a62b68d7469a93f373476dd955c44eb051be0;p=quassel.git diff --git a/src/common/syncableobject.cpp b/src/common/syncableobject.cpp index 426bc86c..ebe6ca0e 100644 --- a/src/common/syncableobject.cpp +++ b/src/common/syncableobject.cpp @@ -37,10 +37,19 @@ SyncableObject::SyncableObject(QObject *parent) SyncableObject::SyncableObject(const SyncableObject &other, QObject *parent) : QObject(parent), _initialized(other._initialized), - _allowClientUpdates(false) + _allowClientUpdates(other._allowClientUpdates) { } +SyncableObject &SyncableObject::operator=(const SyncableObject &other) { + if(this == &other) + return *this; + + _initialized = other._initialized; + _allowClientUpdates = other._allowClientUpdates; + return *this; +} + bool SyncableObject::isInitialized() const { return _initialized; }