disconnectedIcon = QIcon(":/22x22/actions/network-disconnect");
currentId = 0;
- setEnabled(false); // need a core connection!
+ setEnabled(Client::isConnected()); // need a core connection!
setWidgetStates();
connect(Client::instance(), SIGNAL(coreConnectionStateChanged(bool)), this, SLOT(coreConnectionStateChanged(bool)));
connect(Client::instance(), SIGNAL(networkCreated(NetworkId)), this, SLOT(clientNetworkAdded(NetworkId)));
}
// FIXME disable network creation/deletion because of the storage issue
- ui.addNetwork->setEnabled(false);
ui.deleteNetwork->setEnabled(false);
+ ui.renameNetwork->setEnabled(false);
}
void NetworksSettingsPage::setItemState(NetworkId id, QListWidgetItem *item) {
ui.password->setText(serverData["Password"].toString());
ui.useSSL->setChecked(serverData["UseSSL"].toBool());
} else {
- ui.port->setValue(Global::defaultPort);
+ ui.port->setValue(6667);
}
on_host_textChanged();
}