From 78604d85f046f89baa423cbf44659e4acd29e583 Mon Sep 17 00:00:00 2001 From: Will Tange Date: Tue, 12 May 2015 10:08:14 +0200 Subject: [PATCH] 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. --- src/mumble/ConnectDialog.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mumble/ConnectDialog.cpp b/src/mumble/ConnectDialog.cpp index 8f1817f11..dca06ce23 100644 --- a/src/mumble/ConnectDialog.cpp +++ b/src/mumble/ConnectDialog.cpp @@ -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);