summaryrefslogtreecommitdiffstats
path: root/gui/pages.cpp
diff options
context:
space:
mode:
authorVojtech Bocek <vbocek@gmail.com>2014-02-08 02:05:33 +0100
committerVojtech Bocek <vbocek@gmail.com>2014-02-12 19:19:32 +0100
commit072205626caec16f3028a9b698e792e525848581 (patch)
treed262f85a3f58a7a86181dcadc24d6c352928f3f2 /gui/pages.cpp
parentProperly delete all GUIObjects and pages on theme reload (diff)
downloadandroid_bootable_recovery-072205626caec16f3028a9b698e792e525848581.tar
android_bootable_recovery-072205626caec16f3028a9b698e792e525848581.tar.gz
android_bootable_recovery-072205626caec16f3028a9b698e792e525848581.tar.bz2
android_bootable_recovery-072205626caec16f3028a9b698e792e525848581.tar.lz
android_bootable_recovery-072205626caec16f3028a9b698e792e525848581.tar.xz
android_bootable_recovery-072205626caec16f3028a9b698e792e525848581.tar.zst
android_bootable_recovery-072205626caec16f3028a9b698e792e525848581.zip
Diffstat (limited to '')
-rw-r--r--gui/pages.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/gui/pages.cpp b/gui/pages.cpp
index 73aab0352..2953eddb8 100644
--- a/gui/pages.cpp
+++ b/gui/pages.cpp
@@ -519,13 +519,8 @@ void Page::SetPageFocus(int inFocus)
int Page::NotifyVarChange(std::string varName, std::string value)
{
- std::vector<ActionObject*>::iterator iter;
-
- // Don't try to handle a lack of handlers
- if (mActions.size() == 0)
- return 1;
-
- for (iter = mActions.begin(); iter != mActions.end(); ++iter)
+ std::vector<GUIObject*>::iterator iter;
+ for (iter = mObjects.begin(); iter != mObjects.end(); ++iter)
{
if ((*iter)->NotifyVarChange(varName, value))
LOGERR("An action handler errored on NotifyVarChange.\n");
@@ -865,7 +860,10 @@ PageSet* PageManager::SelectPackage(std::string name)
tmp = FindPackage(name);
if (tmp)
+ {
mCurrentSet = tmp;
+ mCurrentSet->NotifyVarChange("", "");
+ }
else
LOGERR("Unable to find package.\n");