X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=Cura%2Fgui%2FsceneView.py;h=6b235257b9b9a812de7cf27591c25c5ee9550b34;hb=6c49c57b430d0f3c8773aa916eae4ab601452615;hp=0618ca1c0badf25355854756828457b2e496ae56;hpb=a99713262f4be243ae0e7fd5d7705e4d9b824fe2;p=cura.git diff --git a/Cura/gui/sceneView.py b/Cura/gui/sceneView.py index 0618ca1c..6b235257 100644 --- a/Cura/gui/sceneView.py +++ b/Cura/gui/sceneView.py @@ -254,10 +254,8 @@ class SceneView(openglGui.glGuiPanel): self._slicer.submitSliceInfoOnline() def showSaveGCode(self): - defPath = profile.getPreference('lastFile') - defPath = defPath[0:defPath.rfind('.')] + '.gcode' - dlg=wx.FileDialog(self, _("Save toolpath"), defPath, style=wx.FD_SAVE) - dlg.SetFilename(self._scene._objectList[0].getName()) + dlg=wx.FileDialog(self, _("Save toolpath"), os.path.dirname(profile.getPreference('lastFile')), style=wx.FD_SAVE) + dlg.SetFilename(self._scene._objectList[0].getName()+'.gcode') dlg.SetWildcard('Toolpath (*.gcode)|*.gcode;*.g') if dlg.ShowModal() != wx.ID_OK: dlg.Destroy()