summaryrefslogtreecommitdiff
path: root/src/gui/setup_video.cpp
diff options
context:
space:
mode:
authorMajin Sniper <majinsniper@gmx.de>2009-02-23 19:37:44 +0100
committerJared Adams <jaxad0127@gmail.com>2009-03-10 05:35:04 -0600
commit7aeec98b0d2ff6c034c78e9ae6572179a808cfc5 (patch)
tree24bc1f49e86d30ea5c38385d20f7de61c2ef2297 /src/gui/setup_video.cpp
parent2ef75627a69a02609e6753d7c3f1189ca3071b07 (diff)
downloadmana-client-7aeec98b0d2ff6c034c78e9ae6572179a808cfc5.tar.gz
mana-client-7aeec98b0d2ff6c034c78e9ae6572179a808cfc5.tar.bz2
mana-client-7aeec98b0d2ff6c034c78e9ae6572179a808cfc5.tar.xz
mana-client-7aeec98b0d2ff6c034c78e9ae6572179a808cfc5.zip
Fix video config cancel button for "show name".
The cancel button in Video configuration window doesn't switch back the "show name" setting to the original state. This patch fixes that.
Diffstat (limited to 'src/gui/setup_video.cpp')
-rw-r--r--src/gui/setup_video.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp
index e89afd94..ad133e7e 100644
--- a/src/gui/setup_video.cpp
+++ b/src/gui/setup_video.cpp
@@ -413,6 +413,8 @@ void Setup_Video::cancel()
config.setValue("particleeffects", mParticleEffectsEnabled ? true : false);
config.setValue("speech", mSpeechMode);
config.setValue("showownname", mNameEnabled ? true : false);
+ if (player_node)
+ player_node->mUpdateName = true;
config.setValue("guialpha", mOpacity);
config.setValue("opengl", mOpenGLEnabled ? true : false);
config.setValue("showpickupchat", mPickupChatEnabled ? true : false);