diff options
Diffstat (limited to 'src/gui/serverdialog.cpp')
-rw-r--r-- | src/gui/serverdialog.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/serverdialog.cpp b/src/gui/serverdialog.cpp index 6dae9ea9..91e5fdeb 100644 --- a/src/gui/serverdialog.cpp +++ b/src/gui/serverdialog.cpp @@ -298,11 +298,13 @@ void ServerDialog::action(const gcn::ActionEvent &event) const ServerInfo &serverInfo = mServersListModel->getServer(index); mServerInfo->hostname = serverInfo.hostname; + mServerInfo->name = serverInfo.name; mServerInfo->port = serverInfo.port; mServerInfo->type = serverInfo.type; // Save the selected server mServerInfo->save = true; + saveCustomServers(*mServerInfo); chatLogger->setServerName(mServerInfo->hostname); @@ -587,7 +589,7 @@ void ServerDialog::saveCustomServers(const ServerInfo ¤tServer, int index) break; } } - mServers.insert(mServers.begin(), currentServer); + mServers.push_front(currentServer); } } |