[Commits] (morgen) Fix for bug 2159 (linux/debug crash during drag-n-drop), r=robin

commits at osafoundation.org commits at osafoundation.org
Wed Mar 9 11:44:42 PST 2005


Commit by: morgen
Modified files:
chandler/parcels/osaf/framework/blocks/ControlBlocks.py 1.182 1.183

Log message:
Fix for bug 2159 (linux/debug crash during drag-n-drop), r=robin


ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/framework/blocks/ControlBlocks.py.diff?r1=text&tr1=1.182&r2=text&tr2=1.183

Index: chandler/parcels/osaf/framework/blocks/ControlBlocks.py
diff -u chandler/parcels/osaf/framework/blocks/ControlBlocks.py:1.182 chandler/parcels/osaf/framework/blocks/ControlBlocks.py:1.183
--- chandler/parcels/osaf/framework/blocks/ControlBlocks.py:1.182	Thu Mar  3 18:03:06 2005
+++ chandler/parcels/osaf/framework/blocks/ControlBlocks.py	Wed Mar  9 11:44:40 2005
@@ -1,5 +1,5 @@
-__version__ = "$Revision: 1.182 $"
-__date__ = "$Date: 2005/03/04 02:03:06 $"
+__version__ = "$Revision: 1.183 $"
+__date__ = "$Date: 2005/03/09 19:44:40 $"
 __copyright__ = "Copyright (c) 2003-2005 Open Source Applications Foundation"
 __license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
 
@@ -600,6 +600,11 @@
             self.blockItem.columnWidths [columnIndex] = self.GetColSize (columnIndex)
 
     def OnItemDrag(self, event):
+
+        # To fix bug 2159, tell the grid to release the mouse now because the
+        # grid object may get destroyed before it has a chance to later on:
+        self.GetGridWindow().ReleaseMouse()
+
         self.SetDragData (self.blockItem.contents [event.GetRow()].itsUUID)
 
     def AddItem(self, itemUUID):



More information about the Commits mailing list