Fixed bug tabs selected cyclically when drag'n dropping variable into Editor
authorLaurent Bessard
Thu, 16 May 2013 13:13:00 +0200
changeset 1159 950787298c96
parent 1158 193e6cd9010f
child 1160 e9e9d3193894
child 1161 2d6ec60c48de
Fixed bug tabs selected cyclically when drag'n dropping variable into Editor
IDEFrame.py
--- a/IDEFrame.py	Thu May 16 13:11:33 2013 +0200
+++ b/IDEFrame.py	Thu May 16 13:13:00 2013 +0200
@@ -1429,7 +1429,8 @@
 #-------------------------------------------------------------------------------
 
     def RefreshProjectTree(self):
-        self.ProjectTree.SetEvtHandlerEnabled(False)
+        if wx.Platform == '__WXMSW__':
+            self.ProjectTree.SetEvtHandlerEnabled(False)
         
         # Extract current selected item tagname
         selected = self.ProjectTree.GetSelection()
@@ -1450,7 +1451,7 @@
         # Select new item corresponding to previous selected item
         if tagname is not None:
             self.SelectProjectTreeItem(tagname)
-        else:
+        elif wx.Platform == '__WXMSW__':
             self.ProjectTree.SetEvtHandlerEnabled(True)
 
     def ResetSelectedItem(self):