Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0, 1.0.1, and 1.0.2

cslist: prevent tracebacks during DnD on Linux

Changeset 1ad2db3a600b

Parent d86aa8c35b7a

by Steve Borho

Changes to one file · Browse files at 1ad2db3a600b Showing diff from parent d86aa8c35b7a Diff from another changeset...

 
464
465
466
467
468
 
 
469
470
471
 
724
725
726
727
 
728
729
730
 
464
465
466
 
 
467
468
469
470
471
 
724
725
726
 
727
728
729
730
@@ -464,8 +464,8 @@
  pos: Number, the position of separator you need.   If -1 or list length, indicates the last separator.   """ - # invalid position - if pos < -1: + # invalid position/condition + if pos < -1 or not self.showitems:   return None   def get_last():   child = self.csbox.get_children()[-1] @@ -724,7 +724,7 @@
  self.teardown_dnd()     def dnd_motion(self, widget, context, x, y, event_time): - if self.item_drag is not None: + if hasattr(self, 'item_drag') and self.item_drag is not None:   num = len(self.curitems)   if not self.hlsep:   self.setup_dnd(restart=True)