Committing a whole bunch of Identity-related stuff that's not actually used yet,
[quassel.git] / src / qtui / settingspages / identitiessettingspage.cpp
index a961712..3c8ce35 100644 (file)
 
 #include "identitiessettingspage.h"
 
+#include "client.h"
+
 IdentitiesSettingsPage::IdentitiesSettingsPage(QWidget *parent)
   : SettingsPage(tr("General"), tr("Identities"), parent) {
 
   ui.setupUi(this);
+  setEnabled(false);  // need a core connection!
+  connect(Client::instance(), SIGNAL(coreConnectionStateChanged(bool)), this, SLOT(coreConnectionStateChanged(bool)));
 
+}
 
+void IdentitiesSettingsPage::coreConnectionStateChanged(bool state) {
+  //this->setEnabled(state);
+  if(state) {
+    load();
+  }
 }
 
 bool IdentitiesSettingsPage::hasChanged() const {
-
+  return true;
 }
 
 void IdentitiesSettingsPage::save() {