diff --git a/source/ArmarXGui/gui-plugins/ScenarioManager/controller/DetailedApplicationController.cpp b/source/ArmarXGui/gui-plugins/ScenarioManager/controller/DetailedApplicationController.cpp index ca7327da85757fa79cf70bf9a8a60de44821bfe5..0d2835dbe344137e2d9af0079b92bf5b83d8f61b 100644 --- a/source/ArmarXGui/gui-plugins/ScenarioManager/controller/DetailedApplicationController.cpp +++ b/source/ArmarXGui/gui-plugins/ScenarioManager/controller/DetailedApplicationController.cpp @@ -153,54 +153,10 @@ void DetailedApplicationController::start() { if (currentApplication.get() != nullptr) { - // //check if there is an undefined req property - // armarx::PropertyDefinitionsPtr props = currentApplication->getProperties(); - // Ice::PropertyDict dict = props->getProperties()->getPropertiesForPrefix(""); - - // bool foundUnsetRequired = false; - // for(auto const &property : dict) - // { - // if(property.second == "::_NOT_SET_::" || property.second == "<set value!>") { - // foundUnsetRequired = true; - // break; - // } - // } - - // if(foundUnsetRequired) { - // QMessageBox message; - // message.setText(QString::fromStdString("There are uninitialised Required Properties in Application " + currentApplication->getName())); - // message.exec(); - // } - executor->startApplication(currentApplication); } else if (currentScenario.get() != nullptr) { - for (auto instance = currentScenario->getApplications()->begin(); instance != currentScenario->getApplications()->end(); ++instance) - { - //check if there is an undefined req property - armarx::PropertyDefinitionsPtr props = (*instance)->getProperties(); - Ice::PropertyDict dict = props->getProperties()->getPropertiesForPrefix(""); - - bool foundUnsetRequired = false; - for (auto const & property : dict) - { - if (property.second == "::_NOT_SET_::" || property.second == "<set value!>") - { - foundUnsetRequired = true; - break; - } - } - - if (foundUnsetRequired) - { - QMessageBox message; - message.setText(QString::fromStdString("There are uninitialised Required Properties in Application " + (*instance)->getName())); - message.exec(); - } - - } - executor->startScenario(currentScenario); } }