From 88bcb3807d802cbb6e8b94159d07813f1fc770b7 Mon Sep 17 00:00:00 2001 From: Stefan Dombrowski Date: Sat, 5 Mar 2011 00:18:24 +0100 Subject: Fixing removal of custom server The server got selected from a list that still contained the unwanted server. --- src/gui/serverdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- cgit v1.2.3-70-g09d2