Helpviewer/AdBlock/AdBlockDialog.py

changeset 134
c2dd2bf92ece
parent 55
b5c84934de9c
child 461
34528aaedf1c
child 792
a13346916170
equal deleted inserted replaced
133:5b6e8eb22796 134:c2dd2bf92ece
51 self.connect(menu, SIGNAL("aboutToShow()"), self.__aboutToShowActionMenu) 51 self.connect(menu, SIGNAL("aboutToShow()"), self.__aboutToShowActionMenu)
52 self.actionButton.setMenu(menu) 52 self.actionButton.setMenu(menu)
53 self.actionButton.setIcon(UI.PixmapCache.getIcon("adBlockAction.png")) 53 self.actionButton.setIcon(UI.PixmapCache.getIcon("adBlockAction.png"))
54 self.actionButton.setPopupMode(QToolButton.InstantPopup) 54 self.actionButton.setPopupMode(QToolButton.InstantPopup)
55 55
56 subscription = manager.customRules() 56 if self.adBlockGroup.isChecked():
57 subscriptionIndex = self.__adBlockModel.subscriptionIndex(subscription) 57 subscription = manager.customRules()
58 self.subscriptionsTree.expand(self.__proxyModel.mapFromSource(subscriptionIndex)) 58 subscriptionIndex = self.__adBlockModel.subscriptionIndex(subscription)
59 self.subscriptionsTree.expand(self.__proxyModel.mapFromSource(subscriptionIndex))
59 60
60 def model(self): 61 def model(self):
61 """ 62 """
62 Public method to return a reference to the subscriptions tree model. 63 Public method to return a reference to the subscriptions tree model.
63 """ 64 """

eric ide

mercurial