summaryrefslogtreecommitdiff
path: root/src/export.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/export.cc')
-rw-r--r--src/export.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/export.cc b/src/export.cc
index 72e63ea..36059cd 100644
--- a/src/export.cc
+++ b/src/export.cc
@@ -87,7 +87,7 @@ void export_stl(CGAL_Nef_polyhedron *root_N, QString filename, QProgressDialog *
if (!f) {
PRINTA("Can't open STL file \"%1\" for STL export: %2",
filename, QString(strerror(errno)));
- MainWindow::current_win = NULL;
+ set_output_handler(NULL, NULL);
return;
}
fprintf(f, "solid OpenSCAD_Model\n");
@@ -155,7 +155,7 @@ void export_dxf(CGAL_Nef_polyhedron *root_N, QString filename, QProgressDialog *
if (!f) {
PRINTA("Can't open DXF file \"%1\" for DXF export: %2",
filename, QString(strerror(errno)));
- MainWindow::current_win = NULL;
+ set_output_handler(NULL, NULL);
return;
}
contact: Jan Huwald // Impressum