Commits

Steve Borho  committed 4868fa6

gdialog: self.cmd is not guarunteed to exist

Closes #1100

  • Participants
  • Parent commits e1bd6ee
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgtk/gdialog.py

             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: