# HG changeset patch # User laurent # Date 1251972579 -7200 # Node ID 9d5b3d63563d4a13203d1a680309d47a7c96eb8a # Parent 2cc48e356902ebfddb4857aa049d0665b23a921c Bug with creating or opening a project not closing windows of current opened project fixed diff -r 2cc48e356902 -r 9d5b3d63563d Beremiz.py --- a/Beremiz.py Thu Sep 03 11:28:46 2009 +0200 +++ b/Beremiz.py Thu Sep 03 12:09:39 2009 +0200 @@ -1252,6 +1252,9 @@ dialog.Destroy() config.Write("lastopenedfolder", os.path.dirname(projectpath)) config.Flush() + self.PluginInfos = {} + if self.PluginRoot is not None: + self.PluginRoot.CloseProject() self.PluginRoot = PluginsRoot(self, self.Log) res = self.PluginRoot.NewProject(projectpath) if not res : @@ -1275,6 +1278,9 @@ if os.path.isdir(projectpath): config.Write("lastopenedfolder", os.path.dirname(projectpath)) config.Flush() + self.PluginInfos = {} + if self.PluginRoot is not None: + self.PluginRoot.CloseProject() self.PluginRoot = PluginsRoot(self, self.Log) result = self.PluginRoot.LoadProject(projectpath) if not result: