def reject(self): idx = self.stack.currentIndex() if idx > 0: if confirm_delete(_('Are you sure? Any unsaved changes will be lost.'), 'confirm-cancel-edit-custom-recipe'): self.stack.setCurrentIndex(0) return Dialog.reject(self)
def reject(self): idx = self.stack.currentIndex() if idx > 0: self.stack.setCurrentIndex(0) return Dialog.reject(self)
def reject(self): self.abort_disk_usage.set() Dialog.reject(self)