Changeset e14dfb18f3f7…
Parent 1935054137d3…
by
Changes to 2 files · Browse files at e14dfb18f3f7 Showing diff from parent 1935054137d3 Diff from another changeset...
@@ -1298,6 +1298,8 @@ def stripRevision(self):
'Strip the selected revision and all descendants'
dlg = thgstrip.StripDialog(self.repo, rev=str(self.rev), parent=self)
+ dlg.showBusyIcon.connect(self.onShowBusyIcon)
+ dlg.hideBusyIcon.connect(self.onHideBusyIcon)
dlg.finished.connect(dlg.deleteLater)
dlg.exec_()
|
@@ -18,6 +18,9 @@ class StripDialog(QDialog):
"""Dialog to strip changesets"""
+ showBusyIcon = pyqtSignal(QString)
+ hideBusyIcon = pyqtSignal(QString)
+
def __init__(self, repo=None, rev=None, parent=None, opts={}):
super(StripDialog, self).__init__(parent)
self.setWindowFlags(self.windowFlags() & ~Qt.WindowContextHelpButtonHint)
@@ -235,8 +238,10 @@ self.close_btn.setHidden(True)
self.cancel_btn.setShown(True)
self.detail_btn.setShown(True)
+ self.showBusyIcon.emit('hg-remove')
def command_finished(self, ret):
+ self.hideBusyIcon.emit('hg-remove')
self.repo.decrementBusyCount()
if ret is not 0 or self.cmd.outputShown():
self.detail_btn.setChecked(True)
|
Loading...