1. TortoiseHg
  2. TortoiseHg
  3. thg


Yuki KODAMA  committed 9601890

gdialog: backed out changeset: 4868fa6c862e

'self.cmd' variable is added in GDialog.__init__() function.
So existence of 'self.cmd' variable is guaranteed.

Refs #1132

  • Participants
  • Parent commits e5ee122
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgtk/gdialog.py

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