From fa30aca94a41f78e9442dae9874657343786acb4 Mon Sep 17 00:00:00 2001 From: that Date: Fri, 13 Feb 2015 01:22:22 +0100 Subject: gui: fix condition handling for lists Base class must be called first, otherwise the condition can never again become true. Fixes font size switching in Material theme. Change-Id: I160a733549495e1bde3cead56b0a3582f0dc744c --- gui/listbox.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gui/listbox.cpp') diff --git a/gui/listbox.cpp b/gui/listbox.cpp index 89a2c0322..37ba958c1 100644 --- a/gui/listbox.cpp +++ b/gui/listbox.cpp @@ -122,11 +122,11 @@ int GUIListBox::Update(void) int GUIListBox::NotifyVarChange(const std::string& varName, const std::string& value) { + GUIScrollList::NotifyVarChange(varName, value); + if(!isConditionTrue()) return 0; - GUIScrollList::NotifyVarChange(varName, value); - // Check to see if the variable that we are using to store the list selected value has been updated if (varName == mVariable) { int i, listSize = mList.size(); -- cgit v1.2.3