Disable settings for away-on-detach as it hasn't been implemented yet
[quassel.git] / src / qtui / settingspages / identitiessettingspage.cpp
index 8102f00..825d833 100644 (file)
@@ -77,6 +77,8 @@ void IdentitiesSettingsPage::setWidgetStates() {
   }
   ui.deleteNick->setEnabled(ui.nicknameList->count() > 1);
 
+  // FIXME this is until stuff has been implemented
+  ui.detachAwayEnabled->setEnabled(false);
 }
 
 void IdentitiesSettingsPage::coreConnectionStateChanged(bool state) {
@@ -463,9 +465,8 @@ SaveIdentitiesDlg::SaveIdentitiesDlg(const QList<Identity *> &toCreate, const QL
         numevents--;
         continue;
       }
-      // FIXME this only checks for one changed item rather than all!
       connect(cid, SIGNAL(updatedRemotely()), this, SLOT(clientEvent()));
-      Client::updateIdentity(*id);
+      Client::updateIdentity(id->id(), id->toVariantMap());
     }
     foreach(IdentityId id, toRemove) {
       Client::removeIdentity(id);