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 """ |