Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

guess: fix 'finished' behavior

Changeset 6381f478bd02

Parent 6dd9d192975c

by Steve Borho

Changes to one file · Browse files at 6381f478bd02 Showing diff from parent 6dd9d192975c Diff from another changeset...

 
167
168
169
170
171
172
173
174
175
176
177
178
 
184
185
186
187
 
188
189
 
 
 
 
 
 
190
191
192
 
167
168
169
 
 
 
 
 
 
170
171
172
 
178
179
180
 
181
182
183
184
185
186
187
188
189
190
191
192
@@ -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)