From 4cc13d2207d65ab40f80126170c3f4d233a179e8 Mon Sep 17 00:00:00 2001 From: Don Bright Date: Sun, 2 Jun 2013 22:49:24 -0500 Subject: delete openscad.com, bug rept by michael at oz issue 389 diff --git a/scripts/installer.nsi b/scripts/installer.nsi index 2cbd6d3..9d7d891 100644 --- a/scripts/installer.nsi +++ b/scripts/installer.nsi @@ -30,5 +30,6 @@ Delete $INSTDIR\libraries\boxes.scad Delete $INSTDIR\libraries\shapes.scad RMDir $INSTDIR\libraries Delete $INSTDIR\openscad.exe +Delete $INSTDIR\openscad.com RMDir $INSTDIR SectionEnd -- cgit v0.10.1 From 7f74d8d5d35fe4a2eb563b5a96f963d8ea0d6816 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Tue, 4 Jun 2013 20:57:52 -0400 Subject: bugfix: drag&drop of stl/off/dxf didn't work into an empty editor diff --git a/src/mainwin.cc b/src/mainwin.cc index ac75269..7ca7de5 100644 --- a/src/mainwin.cc +++ b/src/mainwin.cc @@ -493,12 +493,12 @@ void MainWindow::openFile(const QString &new_filename) { QString actual_filename = new_filename; + QFileInfo fi(new_filename); + if (fi.suffix().toLower().contains(QRegExp("^(stl|off|dxf)$"))) { + actual_filename = QString(); + } #ifdef ENABLE_MDI if (!editor->toPlainText().isEmpty()) { - QFileInfo fi(new_filename); - if (fi.suffix().toLower().contains(QRegExp("^(stl|off|dxf)$"))) { - actual_filename = QString(); - } new MainWindow(actual_filename); clearCurrentOutput(); return; -- cgit v0.10.1