eric7/HelpViewer/OpenPagesWidget.py

branch
eric7
changeset 8691
5dfa59f73de3
parent 8685
b0669ce1066d
child 8696
7e88f292b1b1
equal deleted inserted replaced
8690:25f68ec4181a 8691:5dfa59f73de3
94 @param point position to open the menu at 94 @param point position to open the menu at
95 @type QPoint 95 @type QPoint
96 """ 96 """
97 itm = self.__openPagesList.itemAt(point) 97 itm = self.__openPagesList.itemAt(point)
98 self.__copyUrlAct.setEnabled(bool(itm) and itm.text() != "about:blank") 98 self.__copyUrlAct.setEnabled(bool(itm) and itm.text() != "about:blank")
99 self.closeOthersMenuAct.setEnabled(self.__openPagesList.count() > 1)
99 self.__menu.popup(self.__openPagesList.mapToGlobal(point)) 100 self.__menu.popup(self.__openPagesList.mapToGlobal(point))
100 101
101 @pyqtSlot(int) 102 @pyqtSlot(int)
102 def __currentPageChanged(self, index): 103 def __currentPageChanged(self, index):
103 """ 104 """

eric ide

mercurial