Commits

Yuya Nishihara  committed a63dbca

workbench: mark open/close tab handlers as slot for readability

  • Participants
  • Parent commits 6c2da58

Comments (0)

Files changed (1)

File tortoisehg/hgqt/workbench.py

         if actionlist:
             contextmenu.exec_(self.repoTabsWidget.mapToGlobal(point))
 
+    @pyqtSlot()
     def closeLastClickedTab(self):
         if self.repoTabsWidget.lastClickedTab > -1:
             self.repoTabCloseRequested(self.repoTabsWidget.lastClickedTab)
             self.lastClosedRepoRootList = closedRepoRootList
 
 
+    @pyqtSlot()
     def closeNotLastClickedTabs(self):
         self._closeOtherTabs(self.repoTabsWidget.lastClickedTab)
 
             self.updateMenu()
             self.lastClosedRepoRootList = [reporoot]
 
+    @pyqtSlot(int)
     def repoTabCloseRequested(self, index):
         tw = self.repoTabsWidget
         if 0 <= index < tw.count():
                 self.updateMenu()
                 self.lastClosedRepoRootList = [reporoot]
 
+    @pyqtSlot()
     def reopenLastClosedTabs(self):
         for n, reporoot in enumerate(self.lastClosedRepoRootList):
             self.progress(_('Reopening tabs'), n,