Changeset f5037a529712…
Parent 6367f4a79ee8…
by
Changes to 2 files · Browse files at f5037a529712 Showing diff from parent 6367f4a79ee8 Diff from another changeset...
@@ -42,7 +42,7 @@ self.cmd = cmdui.Runner(True, self)
self.cmd.output.connect(self.output)
self.cmd.makeLogVisible.connect(self.makeLogVisible)
- self.cmd.commandFinished.connect(self.reject)
+ self.cmd.commandFinished.connect(self.onCommandFinished)
BB = QDialogButtonBox
bbox = QDialogButtonBox(BB.Ok|BB.Cancel)
@@ -53,6 +53,11 @@
self.focus = self.le
+ @pyqtSlot(int)
+ def onCommandFinished(self, ret):
+ self.repo.decrementBusyCount()
+ self.reject()
+
def accept(self):
self.newpatchname = hglib.fromunicode(self.le.text())
if self.newpatchname != self.oldpatchname:
@@ -62,6 +67,7 @@ return
cmdline = ['qrename', '--repository', self.repo.root, '--',
self.oldpatchname, self.newpatchname]
+ self.repo.incrementBusyCount()
self.cmd.run(cmdline)
else:
self.close()
|
Loading...