#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() {