Skip to content

Commit

Permalink
- OMPlot now at least displays an error if it fails to save a file
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8448 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Apr 1, 2011
1 parent e86bba9 commit 966471b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion OMPlot/OMPlotGUI/PlotWindow.cpp
Expand Up @@ -656,7 +656,9 @@ void PlotWindow::exportDocument()
{
QPixmap pixmap(mpPlot->size());
mpPlot->render(&pixmap);
pixmap.save(fileName);
if (!pixmap.save(fileName)) {
QMessageBox::critical(this, "Error", "Failed to save image " + fileName);
}
}
}

Expand Down

0 comments on commit 966471b

Please sign in to comment.