summaryrefslogtreecommitdiffstats
path: root/gui/action.cpp
diff options
context:
space:
mode:
authorVojtech Bocek <vbocek@gmail.com>2015-01-12 18:29:12 +0100
committerDees Troy <dees_troy@teamw.in>2015-01-12 20:23:37 +0100
commite979abd6ccc120cddcef11e535607462b6bc2adc (patch)
tree24ea28438f51c4d29e1d0565e13fbbed040f59a1 /gui/action.cpp
parentFix some actions being incorrectly threaded (diff)
downloadandroid_bootable_recovery-e979abd6ccc120cddcef11e535607462b6bc2adc.tar
android_bootable_recovery-e979abd6ccc120cddcef11e535607462b6bc2adc.tar.gz
android_bootable_recovery-e979abd6ccc120cddcef11e535607462b6bc2adc.tar.bz2
android_bootable_recovery-e979abd6ccc120cddcef11e535607462b6bc2adc.tar.lz
android_bootable_recovery-e979abd6ccc120cddcef11e535607462b6bc2adc.tar.xz
android_bootable_recovery-e979abd6ccc120cddcef11e535607462b6bc2adc.tar.zst
android_bootable_recovery-e979abd6ccc120cddcef11e535607462b6bc2adc.zip
Diffstat (limited to 'gui/action.cpp')
-rw-r--r--gui/action.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/gui/action.cpp b/gui/action.cpp
index c298d02af..8ea1dae82 100644
--- a/gui/action.cpp
+++ b/gui/action.cpp
@@ -385,8 +385,9 @@ int GUIAction::doActions()
}
else
{
- for (it = mActions.begin(); it != mActions.end(); ++it)
- doAction(*it);
+ const size_t cnt = mActions.size();
+ for (size_t i = 0; i < cnt; ++i)
+ doAction(mActions[i]);
}
return 0;
@@ -484,7 +485,6 @@ int GUIAction::reload(std::string arg)
int check = 0, ret_val = 0;
std::string theme_path;
- operation_start("Reload Theme");
theme_path = DataManager::GetSettingsStoragePath();
if (PartitionManager.Mount_By_Path(theme_path.c_str(), 1) < 0) {
LOGERR("Unable to mount %s during reload function startup.\n", theme_path.c_str());
@@ -502,7 +502,6 @@ int GUIAction::reload(std::string arg)
ret_val = 1;
}
}
- operation_end(ret_val);
return 0;
}