summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gui/listbox.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/gui/listbox.cpp b/gui/listbox.cpp
index 0a53a7c88..d2973bb6e 100644
--- a/gui/listbox.cpp
+++ b/gui/listbox.cpp
@@ -141,8 +141,10 @@ int GUIListBox::NotifyVarChange(const std::string& varName, const std::string& v
if (isCheckList)
{
- if (item.variableName == varName) {
- item.selected = (value != "0");
+ if (item.variableName == varName || varName.empty()) {
+ std::string val;
+ DataManager::GetValue(item.variableName, val);
+ item.selected = (val != "0");
mUpdate = 1;
}
}