summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2012-02-07 00:28:13 +0100
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2012-02-07 00:52:38 +0100
commit1058aeee26c22be6e4e6fcf70ab1a2f478d5bbdd (patch)
tree8e1971fb694c9f6069a24d74f0a4f7dd5ae7ea5e /src
parent957198ff4fcd42431f2c352e21e9cbd3dabaed3a (diff)
downloadmana-1058aeee26c22be6e4e6fcf70ab1a2f478d5bbdd.tar.gz
mana-1058aeee26c22be6e4e6fcf70ab1a2f478d5bbdd.tar.bz2
mana-1058aeee26c22be6e4e6fcf70ab1a2f478d5bbdd.tar.xz
mana-1058aeee26c22be6e4e6fcf70ab1a2f478d5bbdd.zip
Fixed the server type selected when modifying a custom server.
Reviewed-by: Erik Schilling
Diffstat (limited to 'src')
-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());