Skip to content

Commit

Permalink
fixes #2621: Exporting with File Type *.svg, *.svgz, *.dxf should be …
Browse files Browse the repository at this point in the history
…prevented if not in Drawing WB
  • Loading branch information
wwmayer committed Jan 2, 2018
1 parent 21e8592 commit 8faa9f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Gui/Application.cpp
Expand Up @@ -632,6 +632,10 @@ void Application::exportTo(const char* FileName, const char* DocName, const char
catch (const Base::PyException& e){
// Usually thrown if the file is invalid somehow
e.ReportException();
wc.restoreCursor();
QMessageBox::critical(getMainWindow(), QObject::tr("Export failed"),
QString::fromUtf8(e.what()));
wc.setWaitCursor();
}
}
else {
Expand Down

0 comments on commit 8faa9f3

Please sign in to comment.