cmake: avoid de-duplication of user's CXXFLAGS
[quassel.git] / src / common / identity.cpp
index 4b78cfd..80bffc1 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-2018 by the Quassel Project                        *
+ *   Copyright (C) 2005-2022 by the Quassel Project                        *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
@@ -179,7 +179,7 @@ void Identity::setToDefaults()
     setAutoAwayTime(10);
     setAutoAwayReason(tr("Not here. No, really. not here!"));
     setAutoAwayReasonEnabled(false);
-    setDetachAwayEnabled(false);
+    setDetachAwayEnabled(true);
     setDetachAwayReason(tr("All Quassel clients vanished from the face of the earth..."));
     setDetachAwayReasonEnabled(false);
     setIdent("quassel");
@@ -195,7 +195,7 @@ void Identity::setId(IdentityId _id)
     _identityId = _id;
     SYNC(ARG(_id))
     emit idSet(_id);
-    renameObject(QString::number(id().toInt()));
+    setObjectName(QString::number(id().toInt()));
 }
 
 void Identity::setIdentityName(const QString& identityName)