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

stable gdialog: self.cmd is not guarunteed to exist

Closes #1100

Changeset 4868fa6c862e

Parent e1bd6eea4768

by Steve Borho

Changes to one file · Browse files at 4868fa6c862e Showing diff from parent e1bd6eea4768 Diff from another changeset...

 
885
886
887
888
 
889
890
891
 
885
886
887
 
888
889
890
891
@@ -885,7 +885,7 @@
  return # close dialog   # Cancel button or dialog closing by the user   elif response_id in (gtk.RESPONSE_CLOSE, gtk.RESPONSE_DELETE_EVENT): - if self.cmd.is_alive(): + if hasattr(self, 'cmd') and self.cmd.is_alive():   ret = Confirm(_('Confirm Abort'), [], self,   _('Do you want to abort?')).run()   if ret == gtk.RESPONSE_YES: