Exemplo n.º 1
0
 def reject(self):
     #cancell clicked while the backup is in progress.
     #calling kill on tar.
     if self.currentPage() is self.commit_page:
         if backup.backup_cancel():
             self.button(self.CancelButton).setDisabled(True)
     else:
         self.done(0)
Exemplo n.º 2
0
 def reject(self):
     #cancell clicked while the backup is in progress.
     #calling kill on tar.
     if self.currentPage() is self.commit_page:
         if backup.backup_cancel():
             self.button(self.CancelButton).setDisabled(True)
     else:
         self.done(0)
Exemplo n.º 3
0
 def reject(self):
     if self.currentPage() is self.commit_page:
         if backup.backup_cancel():
             self.emit(SIGNAL("restore_progress(QString)"),
                       '<font color="red">{0}</font>'
                       .format("Aborting the operation..."))
             self.button(self.CancelButton).setDisabled(True)
     else:
         self.done(0)