Merging r732:745 from trunk into branches/0.3. Forwardporting fancy bufferviews and...
[quassel.git] / src / client / clientsettings.cpp
index 64274a3..3a1dbd8 100644 (file)
@@ -39,7 +39,8 @@ CoreAccountSettings::CoreAccountSettings(const QString &subgroup) : ClientSettin
 QList<AccountId> CoreAccountSettings::knownAccounts() {
   QList<AccountId> ids;
   foreach(QString key, localChildGroups()) {
-    ids << key.toInt();
+    AccountId acc = key.toInt();
+    if(acc.isValid()) ids << acc;
   }
   return ids;
 }