Skip to content
Permalink
Browse files

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.
  • Loading branch information...
s1gtrap authored and hacst committed May 12, 2015
1 parent 0fdb7c1 commit 78604d85f046f89baa423cbf44659e4acd29e583
Showing with 1 addition and 0 deletions.
  1. +1 −0 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);

0 comments on commit 78604d8

Please sign in to comment.
You can’t perform that action at this time.