Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.1, 2.1.1, and 2.1.2

strip: show busy icon in repo tab

Changeset e14dfb18f3f7

Parent 1935054137d3

by Eduard-Cristian Stefan

Changes to 2 files · Browse files at e14dfb18f3f7 Showing diff from parent 1935054137d3 Diff from another changeset...

 
1298
1299
1300
 
 
1301
1302
1303
 
1298
1299
1300
1301
1302
1303
1304
1305
@@ -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
19
20
 
 
 
21
22
23
 
235
236
237
 
238
239
 
240
241
242
 
18
19
20
21
22
23
24
25
26
 
238
239
240
241
242
243
244
245
246
247
@@ -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)