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

grep: resize columns to content after search

Changeset bbcc8c4df8a0

Parent 1e8e22977e82

by Steve Borho

Changes to one file · Browse files at bbcc8c4df8a0 Showing diff from parent 1e8e22977e82 Diff from another changeset...

 
117
118
119
 
 
 
 
 
120
121
122
 
123
124
125
 
117
118
119
120
121
122
123
124
125
 
 
126
127
128
129
@@ -117,9 +117,13 @@
  self.tv.setColumnHidden(COL_USER, False)   self.thread = HistorySearchThread(self.repo, pattern, icase)   + def finished(): + for col in xrange(COL_TEXT): + self.tv.resizeColumnToContents(col) + self.le.setEnabled(True) +   self.le.setEnabled(False) - self.connect(self.thread, SIGNAL('finished'), - lambda: self.le.setEnabled(True)) + self.connect(self.thread, SIGNAL('finished'), finished)   self.connect(self.thread, SIGNAL('matchedRow'),   lambda row: model.appendRow(*row))   self.thread.start()