projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixing weired behavior and/or crashes for dynamic backlog replay
[quassel.git]
/
src
/
common
/
syncableobject.cpp
diff --git
a/src/common/syncableobject.cpp
b/src/common/syncableobject.cpp
index
426bc86
..
248ccc9
100644
(file)
--- 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),
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;
}
bool SyncableObject::isInitialized() const {
return _initialized;
}
@@
-101,7
+110,7
@@
void SyncableObject::fromVariantMap(const QVariantMap &properties) {
iterator++;
continue;
}
iterator++;
continue;
}
-
+
int propertyIndex = meta->indexOfProperty(propName.toAscii());
if(propertyIndex == -1 || !meta->property(propertyIndex).isWritable())
int propertyIndex = meta->indexOfProperty(propName.toAscii());
if(propertyIndex == -1 || !meta->property(propertyIndex).isWritable())