summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/customserverdialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/customserverdialog.cpp b/src/gui/customserverdialog.cpp
index b84595d0..26368c80 100644
--- a/src/gui/customserverdialog.cpp
+++ b/src/gui/customserverdialog.cpp
@@ -119,8 +119,8 @@ CustomServerDialog::CustomServerDialog(ServerDialog *parent, int index):
mDescriptionField->setText(serverInfo.description);
mServerAddressField->setText(serverInfo.hostname);
mPortField->setText(toString(serverInfo.port));
- mTypeField->setSelected(serverInfo.type ? ServerInfo::MANASERV :
- ServerInfo::TMWATHENA);
+ mTypeField->setSelected(serverInfo.type == ServerInfo::TMWATHENA ?
+ 0 : 1);
}
setLocationRelativeTo(getParentWindow());