Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0.3, 2.0.4, and 2.0.5

stable commit: add a stop action (closes #297)

Changeset b8d1fbd7634a

Parent ede9ac6297a6

by Steve Borho

Changes to one file · Browse files at b8d1fbd7634a Showing diff from parent ede9ac6297a6 Diff from another changeset...

 
218
219
220
 
 
 
 
 
221
222
223
 
611
612
613
 
 
 
 
614
615
 
616
617
618
 
218
219
220
221
222
223
224
225
226
227
228
 
616
617
618
619
620
621
622
623
624
625
626
627
628
@@ -218,6 +218,11 @@
  self.branchop = None     tbar.addAction(_('Options')).triggered.connect(self.details) + tbar.setIconSize(QSize(16,16)) + self.stopAction = tbar.addAction(_('Stop')) + self.stopAction.triggered.connect(self.stop) + self.stopAction.setIcon(qtlib.geticon('process-stop')) + self.stopAction.setEnabled(False)     hbox.addStretch(1)   @@ -611,8 +616,13 @@
  repo.incrementBusyCount()   self.commitButtonEnable.emit(False)   self.runner.run(*commandlines) + self.stopAction.setEnabled(True) + + def stop(self): + self.runner.cancel()     def commandFinished(self, ret): + self.stopAction.setEnabled(False)   self.commitButtonEnable.emit(True)   self.repo.decrementBusyCount()   if ret == 0: