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

manifestdialog: expand file tree when showing only changes

Changeset 09531d20b5c2

Parent ac31dde70712

by Yuya Nishihara

Changes to one file · Browse files at 09531d20b5c2 Showing diff from parent ac31dde70712 Diff from another changeset...

 
196
197
198
 
 
 
 
 
 
 
 
199
200
201
 
196
197
198
199
200
201
202
203
204
205
206
207
208
209
@@ -196,6 +196,14 @@
  self._treeview.setModel(self._treemodel)   self._treeview.selectionModel().currentChanged.connect(self._fileselected)   self._statusfilter.textChanged.connect(self._treemodel.setStatusFilter) + self._statusfilter.textChanged.connect(self._autoexpandtree) + self._autoexpandtree() + + @pyqtSlot() + def _autoexpandtree(self): + """expand file tree if the number of the items isn't large""" + if 'C' not in self._statusfilter.text: + self._treeview.expandAll()     def reload(self):   # TODO