# HG changeset patch
# User Laurent Bessard
# Date 1368702780 -7200
# Node ID 950787298c96376ee058e79f83b0ae36014cd6e7
# Parent  193e6cd9010f0f5bc61786f82dcc628e7d8c0f1c
Fixed bug tabs selected cyclically when drag'n dropping variable into Editor

diff -r 193e6cd9010f -r 950787298c96 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):