From 139b723402c715a1fc7c106de4e3e55cd3d3f6d8 Mon Sep 17 00:00:00 2001 From: daid Date: Mon, 19 Jan 2015 09:57:59 +0100 Subject: [PATCH] Fix 1096 --- Cura/gui/sceneView.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.30.2