summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Dombrowski <stefan@uni-bonn.de>2011-03-05 00:18:24 +0100
committerStefan Dombrowski <stefan@uni-bonn.de>2011-03-05 00:18:24 +0100
commit88bcb3807d802cbb6e8b94159d07813f1fc770b7 (patch)
treebcaa8e27ba1843e909e53af55972ae6dc68c76c7
parent1386b95dca1b5b0159f0b607220a09c0cd4f6b5d (diff)
downloadmana-88bcb3807d802cbb6e8b94159d07813f1fc770b7.tar.gz
mana-88bcb3807d802cbb6e8b94159d07813f1fc770b7.tar.bz2
mana-88bcb3807d802cbb6e8b94159d07813f1fc770b7.tar.xz
mana-88bcb3807d802cbb6e8b94159d07813f1fc770b7.zip
Fixing removal of custom server
The server got selected from a list that still contained the unwanted server.
-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 abe898b0..6939d1e7 100644
--- a/src/gui/serverdialog.cpp
+++ b/src/gui/serverdialog.cpp
@@ -377,8 +377,8 @@ void ServerDialog::action(const gcn::ActionEvent &event)
else if (event.getId() == "remove")
{
int index = mServersList->getSelected();
- mServersList->setSelected(0);
mServers.erase(mServers.begin() + index);
+ mServersList->setSelected(0);
saveCustomServers();
}