summaryrefslogtreecommitdiffstats
path: root/gui/slidervalue.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--gui/slidervalue.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/gui/slidervalue.cpp b/gui/slidervalue.cpp
index c83456b9e..972d1f728 100644
--- a/gui/slidervalue.cpp
+++ b/gui/slidervalue.cpp
@@ -396,8 +396,10 @@ int GUISliderValue::NotifyTouch(TOUCH_STATE state, int x, int y)
return 0;
}
-int GUISliderValue::NotifyVarChange(std::string varName, std::string value)
+int GUISliderValue::NotifyVarChange(const std::string& varName, const std::string& value)
{
+ GUIObject::NotifyVarChange(varName, value);
+
if (mLabel)
mLabel->NotifyVarChange(varName, value);
if (varName == mVariable) {