[qt] re-enable "reselect currently visited rev and file on reload" (closes #93641)

self.setupModels() resets the model which automatically refreshes the revision table once the related walker has been filled. Calling self.refreshRevisionTable() over-refreshes the table.

This bug conflicts with the reselection system that has not the time to be fully updated.

authorAlain Leufroy <alain.leufroy@logilab.fr>
changesetf475bc6966e8
branchstable
phasepublic
hiddenno
parent revision#29279e6d322c [qt] fix: do nothing if the entry of ``find`` is empty (closes #93422)
child revision#67eb0203eace [tui] ctx.description(): always tries to convert to unicode (closes #98647), #ebdaabf52b73 merge stable in default
files modified by this revision
hgviewlib/qt4/hgrepoviewer.py
# HG changeset patch
# User Alain Leufroy <alain.leufroy@logilab.fr>
# Date 1338295140 -7200
# Tue May 29 14:39:00 2012 +0200
# Branch stable
# Node ID f475bc6966e8d97fe4476de67ffda9ce92c35cb9
# Parent 29279e6d322ccb60904902d7bf2d812364a66637
[qt] re-enable "reselect currently visited rev and file on reload" (closes #93641)

``self.setupModels()`` resets the model which automatically refreshes the
revision table once the related walker has been filled. Calling
``self.refreshRevisionTable()`` over-refreshes the table.

This bug conflicts with the reselection system that has not the
time to be fully updated.

diff --git a/hgviewlib/qt4/hgrepoviewer.py b/hgviewlib/qt4/hgrepoviewer.py
@@ -488,12 +488,10 @@
1          self._reload_file = self.tableView_filelist.currentFile()
2          self.repo = hg.repository(self.repo.ui, self.repo.root)
3          self._repodate = self._getrepomtime()
4          self.setupBranchCombo()
5          self.setupModels()
6 -        # XXX workaround: see refreshRevisionTable method
7 -        self.refreshRevisionTable(sender=self)
8 
9      #@timeit
10      def refreshRevisionTable(self, *args, **kw):
11          """Starts the process of filling the HgModel"""
12          branch = self.branch_comboBox.currentText()