From 03507766fa4ee07491b7ee702093669de6222c9c 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') diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp index 7e3d483c..59eb4096 100644 --- a/src/gui/setup_video.cpp +++ b/src/gui/setup_video.cpp @@ -414,6 +414,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-70-g09d2