summaryrefslogtreecommitdiff
path: root/src/gui/windows/quitdialog.cpp
diff options
context:
space:
mode:
authorjak1 <mike.wollmann@gmail.com>2021-06-06 14:19:05 +0200
committerjak1 <mike.wollmann@gmail.com>2021-06-06 14:21:38 +0200
commit534de91101fca098a8cc3878295cf4ce529810b7 (patch)
tree271febb65fb55c70c5135ad9f7a9e2f6dfe46aa5 /src/gui/windows/quitdialog.cpp
parent971db6eb1db5fcf4e463b3a92ad2d73ad375193f (diff)
downloadmanaverse-534de91101fca098a8cc3878295cf4ce529810b7.tar.gz
manaverse-534de91101fca098a8cc3878295cf4ce529810b7.tar.bz2
manaverse-534de91101fca098a8cc3878295cf4ce529810b7.tar.xz
manaverse-534de91101fca098a8cc3878295cf4ce529810b7.zip
disable logout option in unique sessions (-S)
Diffstat (limited to 'src/gui/windows/quitdialog.cpp')
-rw-r--r--src/gui/windows/quitdialog.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/windows/quitdialog.cpp b/src/gui/windows/quitdialog.cpp
index ed3cb5c8a..34e0c1976 100644
--- a/src/gui/windows/quitdialog.cpp
+++ b/src/gui/windows/quitdialog.cpp
@@ -24,6 +24,7 @@
#include "client.h"
#include "configuration.h"
+#include "settings.h"
#include "soundmanager.h"
#include "const/sound.h"
@@ -88,8 +89,11 @@ QuitDialog::QuitDialog(QuitDialog **const pointerToMe) :
{
// Only added if we are connected to an accountserver or gameserver
placeOption(placer, mLogoutQuit);
- placeOption(placer, mSwitchAccountServer);
-
+ if(!settings.options.uniqueSession)
+ {
+ // Only shown if we are not in a uniqueSession
+ placeOption(placer, mSwitchAccountServer);
+ }
// Only added if we are connected to a gameserver
if (state == State::GAME)
placeOption(placer, mSwitchCharacter);