fixes #0002621: Exporting with File Type *.svg, *.svgz, *.dxf should be prevented if not in Drawing WB
This commit is contained in:
@@ -632,6 +632,10 @@ void Application::exportTo(const char* FileName, const char* DocName, const char
|
|||||||
catch (const Base::PyException& e){
|
catch (const Base::PyException& e){
|
||||||
// Usually thrown if the file is invalid somehow
|
// Usually thrown if the file is invalid somehow
|
||||||
e.ReportException();
|
e.ReportException();
|
||||||
|
wc.restoreCursor();
|
||||||
|
QMessageBox::critical(getMainWindow(), QObject::tr("Export failed"),
|
||||||
|
QString::fromUtf8(e.what()));
|
||||||
|
wc.setWaitCursor();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user