Skip to content

Commit

Permalink
Call getMessagesStringInternal after getIcon/DiagramAnnotation
Browse files Browse the repository at this point in the history
Since now getIcon/DiagramAnnotation sets the error message instead of ignoring it.
So we need to display it as well. This commit will make browsing a bit slow since now an extra call is always made.
  • Loading branch information
adeas31 committed Feb 10, 2017
1 parent ae41f14 commit 078fe45
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions OMEdit/OMEditGUI/OMC/OMCProxy.cpp
Expand Up @@ -1071,7 +1071,9 @@ QString OMCProxy::getIconAnnotation(QString className)
{
QString expression = "getIconAnnotation(" + className + ")";
sendCommand(expression);
return getResult();
QString result = getResult();
printMessagesStringInternal();
return result;
}

/*!
Expand All @@ -1083,7 +1085,9 @@ QString OMCProxy::getDiagramAnnotation(QString className)
{
QString expression = "getDiagramAnnotation(" + className + ")";
sendCommand(expression);
return getResult();
QString result = getResult();
printMessagesStringInternal();
return result;
}

/*!
Expand Down

0 comments on commit 078fe45

Please sign in to comment.