projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed schema version for newly created SQLite backends
[quassel.git]
/
src
/
common
/
identity.cpp
diff --git
a/src/common/identity.cpp
b/src/common/identity.cpp
index
b69f898
..
3ce1d10
100644
(file)
--- a/
src/common/identity.cpp
+++ b/
src/common/identity.cpp
@@
-55,8
+55,7
@@
Identity::Identity(const Identity &other, QObject *parent) : SyncableObject(pare
}
void Identity::init() {
}
void Identity::init() {
- _initialized = false;
- setObjectName(QString::number(id()));
+ setObjectName(QString::number(id().toInt()));
}
void Identity::setToDefaults() {
}
void Identity::setToDefaults() {
@@
-84,15
+83,7
@@
void Identity::setToDefaults() {
}
bool Identity::isValid() const {
}
bool Identity::isValid() const {
- return (id() > 0);
-}
-
-bool Identity::initialized() const {
- return _initialized;
-}
-
-void Identity::setInitialized() {
- _initialized = true;
+ return (id().toInt() > 0);
}
IdentityId Identity::id() const {
}
IdentityId Identity::id() const {
@@
-179,7
+170,7
@@
QString Identity::quitReason() const {
// NOTE: DO NOT USE ON SYNCHRONIZED OBJECTS!
void Identity::setId(IdentityId _id) {
_identityId = _id;
// NOTE: DO NOT USE ON SYNCHRONIZED OBJECTS!
void Identity::setId(IdentityId _id) {
_identityId = _id;
- setObjectName(QString::number(id()));
+ setObjectName(QString::number(id()
.toInt()
));
//emit idSet(id);
}
//emit idSet(id);
}