Skip to content

Commit

Permalink
- We should close the simulation result file after reading the result…
Browse files Browse the repository at this point in the history
…s e.g variables, val, dataset etc....

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@11044 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Feb 8, 2012
1 parent a00b966 commit 2e89514
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions OMEdit/OMEditGUI/PlotWidget.cpp
Expand Up @@ -350,6 +350,7 @@ void PlotWidget::plotVariables(QTreeWidgetItem *item, int column)
pPlotWindow->plot();
pPlotWindow->fitInView();
pPlotWindow->getPlot()->getPlotZoomer()->setZoomBase(false);
pPlotWindow->closeFile();
}
// if user unchecks the variable then remove it from the plot
else if (pItem->checkState(column) == Qt::Unchecked)
Expand Down Expand Up @@ -407,6 +408,7 @@ void PlotWidget::plotVariables(QTreeWidgetItem *item, int column)
}
pPlotWindow->fitInView();
pPlotWindow->getPlot()->getPlotZoomer()->setZoomBase(false);
pPlotWindow->closeFile();
}
else
{
Expand Down

0 comments on commit 2e89514

Please sign in to comment.