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 backout: disable the Backout/Commit button after the action starts.

In addition to not having the button still clickable when the action is in
process, this fixes the "Commit" button still being clickable when the commit is
done and the dialog isn't closed because the details pane is visible.

Changeset 112f20dd76d0

Parent 7c905f0daee9

by Daniel Atallah

Changes to one file · Browse files at 112f20dd76d0 Showing diff from parent 7c905f0daee9 Diff from another changeset...

 
193
194
195
 
196
197
198
 
210
211
212
 
213
214
215
 
193
194
195
196
197
198
199
 
211
212
213
214
215
216
217
@@ -193,6 +193,7 @@
  self.closeBtn.setHidden(True)   self.cancelBtn.setShown(True)   self.detailBtn.setShown(True) + self.backoutBtn.setEnabled(False)     def command_canceling(self):   self.cancelBtn.setDisabled(True) @@ -210,6 +211,7 @@
  elif self.cmdline[0] == 'backout':   self.didbackout = True   self.msgTextEdit.setEnabled(True) + self.backoutBtn.setEnabled(True)   self.backoutBtn.setText(_('Commit'))   self.backoutBtn.clicked.disconnect(self.backout)   self.backoutBtn.clicked.connect(self.commit)