Changeset 6381f478bd02…
Parent 6dd9d192975c…
by
Changes to one file · Browse files at 6381f478bd02 Showing diff from parent 6dd9d192975c Diff from another changeset...
@@ -167,12 +167,6 @@ _('Select one or more rows for search'))
return
- def done():
- for col in xrange(3):
- self.matchlv.resizeColumnToContents(col)
- self.findbtn.setEnabled(True)
- self.matchbtn.setDisabled(model.isEmpty())
-
pct = self.simslider.value() / 100.0
copies = not self.copycheck.isChecked()
model = self.matchlv.model()
@@ -184,9 +178,15 @@ self.thread.match.connect(model.appendRow)
#self.thread.error.connect(print)
#self.thread.progress.connect(print)
- self.thread.searchComplete.connect(done)
+ self.thread.searchComplete.connect(self.finished)
self.thread.start()
+ def finished(self):
+ for col in xrange(3):
+ self.matchlv.resizeColumnToContents(col)
+ self.findbtn.setEnabled(True)
+ self.matchbtn.setDisabled(model.isEmpty())
+
def acceptMatch(self):
'User pressed "accept match" button'
hglib.invalidaterepo(self.repo)
|
Loading...