chiark / gitweb /
Small tooltip spelling update. fix an issue opening the save dialog on Mac.
[cura.git] / Cura / gui / sceneView.py
index 56a1402b922c75fe63c54151971f8056987dd0ba..1a009e0f4c2cf66c9dbafbb0fa151d004debfc45 100644 (file)
@@ -196,7 +196,7 @@ class SceneView(openglGui.glGuiPanel):
                defPath = profile.getPreference('lastFile')
                defPath = defPath[0:defPath.rfind('.')] + '.gcode'
                dlg=wx.FileDialog(self, 'Save toolpath', defPath, style=wx.FD_SAVE)
-               dlg.SetFilename(defPath)
+               dlg.SetFilename(os.path.basename(defPath))
                dlg.SetWildcard('Toolpath (*.gcode)|*.gcode;*.g')
                if dlg.ShowModal() != wx.ID_OK:
                        dlg.Destroy()