Fix some crashes during theme (re)loading
Change-Id: I01405fbe86a48ae79f2cbe633b89f2dcfb1ef266 Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
This commit is contained in:
+3
-4
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user