Fix bug when Drag'n Dropping located variables on Windows
authorLaurent Bessard
Wed, 31 Oct 2012 12:06:29 +0100
changeset 761 efff55931763
parent 757 8150518de469
child 762 4b60a0d313b0
Fix bug when Drag'n Dropping located variables on Windows
objdictgen/subindextable.py
--- a/objdictgen/subindextable.py	Thu Oct 04 17:19:55 2012 +0200
+++ b/objdictgen/subindextable.py	Wed Oct 31 12:06:29 2012 +0100
@@ -561,6 +561,7 @@
                             dragSource = wx.DropSource(self.SubindexGrid)
                             dragSource.SetData(data)
                             dragSource.DoDragDrop()
+                            return
             elif col == 0:
                 selected = self.IndexList.GetSelection()
                 node_id = self.ParentWindow.GetCurrentNodeId()
@@ -583,6 +584,7 @@
                             dragSource = wx.DropSource(self.SubindexGrid)
                             dragSource.SetData(data)
                             dragSource.DoDragDrop()
+                            return
         event.Skip()
 
     def OnAddButtonClick(self, event):