X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fidentity.cpp;h=b69f8987243482b6554d55951a37617fb66ff6ea;hp=a45eb7579af265024c3ee7a67f8d69e91327ef85;hb=2e6dc76ae100a6b8e1b1661e422995f90083500e;hpb=b797e5f581b10a517c30f78cb53f813af741e261;ds=sidebyside diff --git a/src/common/identity.cpp b/src/common/identity.cpp index a45eb757..b69f8987 100644 --- a/src/common/identity.cpp +++ b/src/common/identity.cpp @@ -60,7 +60,7 @@ void Identity::init() { } void Identity::setToDefaults() { - setIdentityName(tr("Default Identity")); + setIdentityName(tr("")); setRealName(tr("Quassel IRC User")); QStringList n; n << QString("quassel%1").arg(qrand() & 0xff); // FIXME provide more sensible default nicks @@ -81,7 +81,6 @@ void Identity::setToDefaults() { setKickReason(tr("Kindergarten is elsewhere!")); setPartReason(tr("http://quassel-irc.org - Chat comfortably. Anywhere.")); setQuitReason(tr("http://quassel-irc.org - Chat comfortably. Anywhere.")); - } bool Identity::isValid() const { @@ -296,8 +295,8 @@ bool Identity::operator==(const Identity &other) { QMetaProperty metaProp = metaObject()->property(idx); Q_ASSERT(metaProp.isValid()); QVariant v1 = this->property(metaProp.name()); - QVariant v2 = other.property(metaProp.name()); //qDebug() << v1 << v2; - // QVariant cannot compare custom types, so we need to check for this case + QVariant v2 = other.property(metaProp.name()); // qDebug() << v1 << v2; + // QVariant cannot compare custom types, so we need to check for this special case if(QString(v1.typeName()) == "IdentityId") { if(v1.value() != v2.value()) return false; } else {