From 1058aeee26c22be6e4e6fcf70ab1a2f478d5bbdd Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Tue, 7 Feb 2012 00:28:13 +0100 Subject: Fixed the server type selected when modifying a custom server. Reviewed-by: Erik Schilling --- src/gui/customserverdialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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()); -- cgit v1.2.3-70-g09d2