IDE: fix saveAs dialog
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Wed, 25 May 2022 09:18:37 +0200
changeset 3497 1b8906ca2a50
parent 3496 bd4be02fe102
child 3498 cf4e6a7d40f8
IDE: fix saveAs dialog
ProjectController.py
--- a/ProjectController.py	Wed May 25 09:12:58 2022 +0200
+++ b/ProjectController.py	Wed May 25 09:18:37 2022 +0200
@@ -601,11 +601,11 @@
         else:
             path = os.getenv("HOME")
         dirdialog = wx.DirDialog(
-            self.AppFrame, _("Choose a directory to save project"), path, wx.DD_NEW_DIR_BUTTON)
+            self.AppFrame, _("Create or choose an empty directory to save project"), path, wx.DD_NEW_DIR_BUTTON)
         answer = dirdialog.ShowModal()
+        newprojectpath = dirdialog.GetPath()
         dirdialog.Destroy()
         if answer == wx.ID_OK:
-            newprojectpath = dirdialog.GetPath()
             if os.path.isdir(newprojectpath):
                 if self.CheckNewProjectPath(self.ProjectPath, newprojectpath):
                     self.ProjectPath, old_project_path = newprojectpath, self.ProjectPath