Source

thg-qt-mq / infobar-clicked.diff

# HG changeset patch
# Parent ebc688d14817f5fa0fa9da014929d813a557096e
repowidget: not clear infobar on revision selected programatically (fixes #1043)

This fixes the problem that clearRevisionSet() triggers disappearance of
"pull completed" message, because of revisionSelected signal.

diff --git a/tortoisehg/hgqt/repowidget.py b/tortoisehg/hgqt/repowidget.py
--- a/tortoisehg/hgqt/repowidget.py
+++ b/tortoisehg/hgqt/repowidget.py
@@ -741,6 +741,7 @@ class RepoWidget(QWidget):
 
     def onRevisionClicked(self, rev):
         'User clicked on a repoview row'
+        self.clearInfoBar(qtlib.InfoBar.INFO)
         tw = self.taskTabsWidget
         cw = tw.currentWidget()
         if not cw.canswitch():
@@ -756,7 +757,6 @@ class RepoWidget(QWidget):
     def onRevisionSelected(self, rev):
         'View selection changed, could be a reload'
         self.showMessage('')
-        self.clearInfoBar(qtlib.InfoBar.INFO)
         if self.repomodel.graph is None:
             return
         try:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.