summaryrefslogtreecommitdiff
path: root/src/gui/windows/serverdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-22 19:35:25 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-22 19:35:25 +0300
commita54ff6d4104a9b382c1419c00cc83684e391a445 (patch)
treef5163fa2ee8097cc0b98163bc83ae3eb6f3ff4a1 /src/gui/windows/serverdialog.cpp
parent3b22410e42be27ac30fc63f020243241d1eea737 (diff)
downloadmanaverse-a54ff6d4104a9b382c1419c00cc83684e391a445.tar.gz
manaverse-a54ff6d4104a9b382c1419c00cc83684e391a445.tar.bz2
manaverse-a54ff6d4104a9b382c1419c00cc83684e391a445.tar.xz
manaverse-a54ff6d4104a9b382c1419c00cc83684e391a445.zip
Remove default parameters from serverdialog.
Diffstat (limited to 'src/gui/windows/serverdialog.cpp')
-rw-r--r--src/gui/windows/serverdialog.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/gui/windows/serverdialog.cpp b/src/gui/windows/serverdialog.cpp
index ab630e960..1970e8ca4 100644
--- a/src/gui/windows/serverdialog.cpp
+++ b/src/gui/windows/serverdialog.cpp
@@ -258,7 +258,8 @@ void ServerDialog::connectToSelectedServer()
if (chatLogger != nullptr)
chatLogger->setServerName(mServerInfo->hostname);
- saveCustomServers(*mServerInfo);
+ saveCustomServers(*mServerInfo,
+ -1);
if (!LoginDialog::savedPasswordKey.empty())
{
@@ -312,7 +313,8 @@ void ServerDialog::action(const ActionEvent &event)
{
mServersList->setSelected(0);
mServers.erase(mServers.begin() + index);
- saveCustomServers();
+ saveCustomServers(ServerInfo(),
+ -1);
}
}
else if (eventId == "info")
@@ -357,7 +359,8 @@ void ServerDialog::keyPressed(KeyEvent &event)
{
mServersList->setSelected(0);
mServers.erase(mServers.begin() + index);
- saveCustomServers();
+ saveCustomServers(ServerInfo(),
+ -1);
}
return;
}
@@ -413,7 +416,7 @@ void ServerDialog::logic()
MutexLocker tempLock(&mMutex);
if (mDownloadStatus == ServerDialogDownloadStatus::COMPLETE)
{
- loadServers();
+ loadServers(true);
mDownloadStatus = ServerDialogDownloadStatus::OVER;
mDescription->setCaption(std::string());
logger->log("Servers list updated");