Fix license headers: Quassel IRC Team -> Quassel Project, 2007 -> 2008
[quassel.git] / src / qtui / settingspages / identitiessettingspage.cpp
index a961712..49796b0 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-08 by the Quassel IRC Team                         *
+ *   Copyright (C) 2005-08 by the Quassel Project                          *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
 
 #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() {