From 8faa9f38bb70a598afc2bc39ea1645d416ab057e Mon Sep 17 00:00:00 2001 From: wmayer Date: Tue, 2 Jan 2018 16:28:24 +0100 Subject: [PATCH] fixes #0002621: Exporting with File Type *.svg, *.svgz, *.dxf should be prevented if not in Drawing WB --- src/Gui/Application.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Gui/Application.cpp b/src/Gui/Application.cpp index 31595fd15a12..1d968071ab1e 100644 --- a/src/Gui/Application.cpp +++ b/src/Gui/Application.cpp @@ -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 {