From 7aeec98b0d2ff6c034c78e9ae6572179a808cfc5 Mon Sep 17 00:00:00 2001 From: Majin Sniper Date: Mon, 23 Feb 2009 19:37:44 +0100 Subject: 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. --- src/gui/setup_video.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui/setup_video.cpp') 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); -- cgit v1.2.3-60-g2f50