chiark / gitweb /
Add overwrite promt when saving gcode.
authordaid <daid303@gmail.com>
Thu, 20 Feb 2014 08:42:06 +0000 (09:42 +0100)
committerdaid <daid303@gmail.com>
Thu, 20 Feb 2014 08:42:06 +0000 (09:42 +0100)
Cura/gui/sceneView.py

index 4b6d7dc89f04c8d2a4e07983b5795399b045788b..c5116f2966873cd4d042af2a60ff69f279ff3785 100644 (file)
@@ -294,7 +294,7 @@ class SceneView(openglGui.glGuiPanel):
        def showSaveGCode(self):
                if len(self._scene._objectList) < 1:
                        return
-               dlg=wx.FileDialog(self, _("Save toolpath"), os.path.dirname(profile.getPreference('lastFile')), style=wx.FD_SAVE)
+               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() + '.gcode'
                dlg.SetFilename(filename)
                dlg.SetWildcard('Toolpath (*.gcode)|*.gcode;*.g')