connect(ui.hostEdit, SIGNAL(textChanged(const QString &)), this, SLOT(checkInputValid()));
connect(ui.userEdit, SIGNAL(textChanged(const QString &)), this, SLOT(checkInputValid()));
connect(ui.internalCore, SIGNAL(toggled(bool)), this, SLOT(checkInputValid()));
+ connect(ui.internalCore, SIGNAL(toggled(bool)), ui.hostEdit, SLOT(setDisabled(bool)));
+ connect(ui.internalCore, SIGNAL(toggled(bool)), ui.port, SLOT(setDisabled(bool)));
connect(ui.accountList, SIGNAL(currentIndexChanged(const QString &)), this, SLOT(accountChanged(const QString &)));
connect(ui.autoConnect, SIGNAL(clicked(bool)), this, SLOT(autoConnectToggled(bool)));
curacc = s.lastAccount();
if(!ui.accountList->count()) {
//if(doAutoConnect) reject();
- /*
+
setAccountEditEnabled(false);
QString newacc = QInputDialog::getText(this, tr("Create Account"), tr(
"In order to connect to a Quassel Core, you need to create an account.<br>"
ui.internalCore->setChecked(false);
setAccountEditEnabled(true);
}
- */
+ /*
// FIXME We create a default account here that just connects to the internal core
curacc = "Default";
ui.accountList->addItem("Default");
ui.accountList->setCurrentIndex(0);
ui.autoConnect->setChecked(true);
autoConnectToggled(true);
-
+ */
} else {
if(!curacc.isEmpty()) {
//if(doAutoConnect) { qDebug() << "auto";