summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 6fe64b2a..05e3af01 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -681,7 +681,7 @@ int Client::exec()
// Trust that the netcode knows what it's doing
mState = STATE_UPDATE;
}
- else if (worlds.size() == 1)
+ else if (worlds.size() == 1 || mOptions.chooseDefault)
{
Net::getLoginHandler()->chooseServer(0);
mState = STATE_UPDATE;
@@ -689,11 +689,6 @@ int Client::exec()
else
{
mCurrentDialog = new WorldSelectDialog(std::move(worlds));
- if (mOptions.chooseDefault)
- {
- ((WorldSelectDialog*) mCurrentDialog)->action(
- gcn::ActionEvent(nullptr, "ok"));
- }
}
}
break;