IDE: fix saveAs dialog
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Wed, 25 May 2022 09:18:37 +0200
changeset 3480 078d72552c3e
parent 3479 74cfeff6a011
child 3481 563996733dba
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