fixes #0002621: Exporting with File Type *.svg, *.svgz, *.dxf should be prevented if not in Drawing WB

This commit is contained in:
wmayer
2018-01-02 16:28:24 +01:00
parent 2156f4c611
commit 185002d4e5

View File

@@ -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 {