Changeset 13954
- Timestamp:
- 2012-11-19T02:05:30+01:00 (11 years ago)
- Location:
- trunk/OMOptim
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/OMOptim/Core/OMC/MOomc.cpp
r13809 r13954 443 443 InfoSender::instance()->sendNormal("Instantiating model "+modelName); 444 444 QString flatcmd = "instantiateModel("+modelName+")"; 445 QString flattened = evalCommand(flatcmd); 446 445 QString errorString; 446 QString flattened = evalCommand(flatcmd,errorString); 447 448 if(flattened=="\"\"") 449 flattened.clear(); 450 451 if(!errorString.isEmpty() && !flattened.isEmpty()) 452 InfoSender::instance()->sendWarning("Instantiating model warned ["+modelName+"]"); 453 else if(!errorString.isEmpty() && flattened.isEmpty()) 454 InfoSender::instance()->sendError("Instantiating model failed ["+modelName+"]"); 455 else 456 InfoSender::instance()->sendNormal("Instantiating model successful ["+modelName+"]"); 447 457 448 458 return flattened; -
trunk/OMOptim/GUI/Widgets/WidgetModelsList.cpp
r12619 r13954 79 79 void WidgetModelsList::addModels(QStringList list) 80 80 { 81 81 bool addedOk; 82 82 for(int i=0;i<list.size();i++) 83 83 { 84 if(!_problem->models().contains(list.at(i))) 85 { 86 _ui->filesList->addItem(list.at(i)); 87 _problem->addModel(list.at(i)); 88 } 84 _problem->addModel(list.at(i)); 89 85 } 90 86 }
Note: See TracChangeset
for help on using the changeset viewer.