summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/serverdialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/serverdialog.cpp b/src/gui/serverdialog.cpp
index 31232104..da95b6a1 100644
--- a/src/gui/serverdialog.cpp
+++ b/src/gui/serverdialog.cpp
@@ -189,7 +189,6 @@ ServerDialog::ServerDialog(ServerInfo *serverInfo, const std::string &dir):
mPortField->addActionListener(this);
mManualEntryButton->addActionListener(this);
mServersList->addSelectionListener(this);
- mServersList->setSelected(0);
usedScroll->setVerticalScrollAmount(0);
place(0, 0, serverLabel);
@@ -214,6 +213,7 @@ ServerDialog::ServerDialog(ServerInfo *serverInfo, const std::string &dir):
center();
setFieldsReadOnly(true);
+ mServersList->setSelected(0); // Do this after for the Delete button
setVisible(true);
if (mServerNameField->getText().empty())