Fixing bug on Windows with expanding hidden root item in location tree ctrl
authorlaurent
Tue, 17 Jan 2012 22:50:23 +0100
changeset 666 5056f17a0c6b
parent 665 aec7aca89f3e
child 667 f2266a8517e4
Fixing bug on Windows with expanding hidden root item in location tree ctrl
Beremiz.py
--- a/Beremiz.py	Tue Jan 17 22:49:30 2012 +0100
+++ b/Beremiz.py	Tue Jan 17 22:50:23 2012 +0100
@@ -1099,7 +1099,6 @@
             for location in plugin_locations:
                 locations_infos["root"]["children"].append("root.%s" % location["name"])
                 self.GenerateLocationTreeBranch(treectrl, treectrl.GetRootItem(), locations_infos, "root", location)
-                treectrl.Expand(treectrl.GetRootItem())
             if locations_infos["root"]["expanded"]:
                 self.PluginTreeSizer.Layout()
                 self.ExpandLocation(locations_infos, "root")