1. TortoiseHg
  2. TortoiseHg
  3. thg

Commits

Yuya Nishihara  committed ef87900

workbench: make ThgTabBar not skip QTabBar when handling mouseReleaseEvent

  • Participants
  • Parent commits ba3f297
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/workbench.py

View file
         if event.button() == Qt.MidButton:
             self.tabCloseRequested.emit(self.tabAt(event.pos()))
 
-        super(QTabBar, self).mouseReleaseEvent(event)
+        super(ThgTabBar, self).mouseReleaseEvent(event)
 
 class Workbench(QMainWindow):
     """hg repository viewer/browser application"""
         self.setWindowIcon(qtlib.geticon('hg-log'))
 
         self.repoTabsWidget = tw = QTabWidget()
+        # FIXME setTabBar() is protected method
         tw.setTabBar(ThgTabBar())
         tw.setDocumentMode(True)
         tw.setTabsClosable(True)