From: daid Date: Mon, 19 Jan 2015 08:57:59 +0000 (+0100) Subject: Fix 1096 X-Git-Tag: 15.01-RC11~7 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=139b723402c715a1fc7c106de4e3e55cd3d3f6d8;p=cura.git Fix 1096 --- diff --git a/Cura/gui/sceneView.py b/Cura/gui/sceneView.py index 29193f8a..8dafcc9a 100644 --- a/Cura/gui/sceneView.py +++ b/Cura/gui/sceneView.py @@ -316,6 +316,8 @@ class SceneView(openglGui.glGuiPanel): def showSaveGCode(self): if len(self._scene._objectList) < 1: return + if not self._engine.getResult().isFinished(): + return dlg=wx.FileDialog(self, _("Save toolpath"), os.path.dirname(profile.getPreference('lastFile')), style=wx.FD_SAVE|wx.FD_OVERWRITE_PROMPT) filename = self._scene._objectList[0].getName() + profile.getGCodeExtension() dlg.SetFilename(filename)