Connect button should be disabled by default

Since ConnectDialog::accept calls are refused if no item is selected,
and the server last connected to is selected in ConnectDialog::timeTick
(after initialisation), it doesn't make sense for the Connect button
to be enabled before a server is selected.
This commit is contained in:
Will Tange 2015-05-12 10:08:14 +02:00 committed by Stefan Hacker
parent 0fdb7c17e5
commit 78604d85f0

View File

@ -821,6 +821,7 @@ ConnectDialog::ConnectDialog(QWidget *p, bool autoconnect) : QDialog(p), bAutoCo
qlPublicServers.clear();
}
qdbbButtonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
qdbbButtonBox->button(QDialogButtonBox::Ok)->setText(tr("&Connect"));
QPushButton *qpbAdd = new QPushButton(tr("&Add New..."), this);