--- a/Beremiz.py Fri Oct 17 13:03:19 2008 +0200
+++ b/Beremiz.py Fri Oct 17 13:27:03 2008 +0200
@@ -1186,10 +1186,10 @@
dialog = wx.DirDialog(self , "Choose a project", defaultpath, wx.DD_NEW_DIR_BUTTON)
if dialog.ShowModal() == wx.ID_OK:
+ projectpath = dialog.GetPath()
+ dialog.Destroy()
config.Write("lastopenedfolder", os.path.dirname(projectpath))
config.Flush()
- projectpath = dialog.GetPath()
- dialog.Destroy()
self.PluginRoot = PluginsRoot(self, self.Log, self.runtime_port)
res = self.PluginRoot.NewProject(projectpath)
if not res :