X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fidentity.cpp;h=3ce1d10e9341482ee53de6f2c668b283c495d8a1;hp=d7bcbdcf2ef85f3a375b61395c4c1433f9d9eb3d;hb=e733408e4759473bf38831f498f48a0f2f5e6dc7;hpb=980f7e97e879e2f0493bfcdbe38a292eebbb9068 diff --git a/src/common/identity.cpp b/src/common/identity.cpp index d7bcbdcf..3ce1d10e 100644 --- a/src/common/identity.cpp +++ b/src/common/identity.cpp @@ -55,7 +55,7 @@ Identity::Identity(const Identity &other, QObject *parent) : SyncableObject(pare } void Identity::init() { - setObjectName(QString::number(id())); + setObjectName(QString::number(id().toInt())); } void Identity::setToDefaults() { @@ -83,7 +83,7 @@ void Identity::setToDefaults() { } bool Identity::isValid() const { - return (id() > 0); + return (id().toInt() > 0); } IdentityId Identity::id() const { @@ -170,7 +170,7 @@ QString Identity::quitReason() const { // 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); }