Skip to content

Commit

Permalink
Revert "Fix states in Variables Browser"
Browse files Browse the repository at this point in the history
This reverts commit 9ac8442.
It is fixed in OMCompiler now, see
"Only mark states as changeable if the start attribute is constant"
OpenModelica/OMCompiler@95bc481
  • Loading branch information
rfranke committed Nov 4, 2016
1 parent 9298f3a commit 9174ea3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions OMEdit/OMEditGUI/Plotting/VariablesWidget.cpp
Expand Up @@ -726,9 +726,8 @@ void VariablesTreeModel::getVariableInformation(ModelicaMatReader *pMatReader, Q
QHash<QString, QString> hash = mScalarVariablesList.value(variableToFind);
if (hash["name"].compare(variableToFind) == 0) {
*changeAble = (hash["isValueChangeable"].compare("true") == 0) ? true : false;
QString start = hash["start"];
if (*changeAble && !start.isEmpty()) {
*value = start;
if (*changeAble) {
*value = hash["start"];
} else { /* if the variable is not a tunable parameter then read the final value of the variable. Only mat result files are supported. */
if ((pMatReader->file != NULL) && strcmp(pMatReader->fileName, "")) {
*value = "";
Expand Down

0 comments on commit 9174ea3

Please sign in to comment.