Skip to content

Commit

Permalink
Connect button should be disabled by default
Browse files Browse the repository at this point in the history
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 78604d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mumble/ConnectDialog.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -821,6 +821,7 @@ ConnectDialog::ConnectDialog(QWidget *p, bool autoconnect) : QDialog(p), bAutoCo
qlPublicServers.clear(); qlPublicServers.clear();
} }


qdbbButtonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
qdbbButtonBox->button(QDialogButtonBox::Ok)->setText(tr("&Connect")); qdbbButtonBox->button(QDialogButtonBox::Ok)->setText(tr("&Connect"));


QPushButton *qpbAdd = new QPushButton(tr("&Add New..."), this); QPushButton *qpbAdd = new QPushButton(tr("&Add New..."), this);
Expand Down

0 comments on commit 78604d8

Please sign in to comment.