equal
deleted
inserted
replaced
859 def OnNewProjectMenu(self, event): |
859 def OnNewProjectMenu(self, event): |
860 if self.CTR is not None and not self.CheckSaveBeforeClosing(): |
860 if self.CTR is not None and not self.CheckSaveBeforeClosing(): |
861 return |
861 return |
862 |
862 |
863 try: |
863 try: |
864 defaultpath = DecodeFileSystemPath(self.Config.Read("lastopenedfolder")) |
864 defaultpath = DecodeFileSystemPath(self.Config.Read("lastopenedfolder").encode()) |
865 except Exception: |
865 except Exception: |
866 defaultpath = os.path.expanduser("~") |
866 defaultpath = os.path.expanduser("~") |
867 |
867 |
868 dialog = wx.DirDialog(self, _("Choose an empty directory for new project"), defaultpath) |
868 dialog = wx.DirDialog(self, _("Choose an empty directory for new project"), defaultpath) |
869 if dialog.ShowModal() == wx.ID_OK: |
869 if dialog.ShowModal() == wx.ID_OK: |