Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- Check for buildModel errors instead of warnings


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8740 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Apr 22, 2011
1 parent 1e0e8cd commit a114953
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions OMEdit/OMEditGUI/OMCProxy.cpp
Expand Up @@ -1244,11 +1244,8 @@ bool OMCProxy::simulate(QString modelName, QString simualtionParameters)
bool OMCProxy::buildModel(QString modelName, QString simualtionParameters)
{
sendCommand("buildModel(" + modelName + "," + simualtionParameters + ")");

if (getErrorString().isEmpty())
return true;
else
return false;
bool res = getResult() != "{\"\",\"\"}";
return res;
}

QList<QString> OMCProxy::readSimulationResultVars(QString fileName)
Expand Down

0 comments on commit a114953

Please sign in to comment.