Skip to content
Snippets Groups Projects
Commit 24ba6a32 authored by Mirko Wächter's avatar Mirko Wächter
Browse files

ScenaioManager: moved scenario calls after null null check

parent c908af96
No related branches found
No related tags found
No related merge requests found
......@@ -94,12 +94,7 @@ void OpenScenarioController::on_openScenario(int row, int column, QModelIndex pa
std::string cacheDir = Parser::IceParser::getCacheDir();
for (auto it : *scenario->getApplications())
{
executor->loadAndSetCachedProperties(it, cacheDir, false, false);
}
scenario->reloadAppInstances();
if (scenario.get() == nullptr)
{
......@@ -111,6 +106,14 @@ void OpenScenarioController::on_openScenario(int row, int column, QModelIndex pa
message.exec();
return;
}
for (auto it : *scenario->getApplications())
{
executor->loadAndSetCachedProperties(it, cacheDir, false, false);
}
scenario->reloadAppInstances();
package->addScenario(scenario);
QSettings settings;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment