Helpviewer/AdBlock/AdBlockExceptionsDialog.py

changeset 2403
e3d7a861547c
parent 2302
f29e9405c851
child 2525
8b507a9a2d40
child 2991
226481ff40d1
equal deleted inserted replaced
2402:304fcefd3b04 2403:e3d7a861547c
9 9
10 from PyQt4.QtCore import pyqtSlot 10 from PyQt4.QtCore import pyqtSlot
11 from PyQt4.QtGui import QDialog 11 from PyQt4.QtGui import QDialog
12 12
13 from .Ui_AdBlockExceptionsDialog import Ui_AdBlockExceptionsDialog 13 from .Ui_AdBlockExceptionsDialog import Ui_AdBlockExceptionsDialog
14
15 import Helpviewer.HelpWindow
16 14
17 import UI.PixmapCache 15 import UI.PixmapCache
18 16
19 17
20 class AdBlockExceptionsDialog(QDialog, Ui_AdBlockExceptionsDialog): 18 class AdBlockExceptionsDialog(QDialog, Ui_AdBlockExceptionsDialog):
85 """ 83 """
86 hosts = [] 84 hosts = []
87 for row in range(self.hostList.count()): 85 for row in range(self.hostList.count()):
88 hosts.append(self.hostList.item(row).text()) 86 hosts.append(self.hostList.item(row).text())
89 87
88 import Helpviewer.HelpWindow
90 Helpviewer.HelpWindow.HelpWindow.adBlockManager().setExceptions(hosts) 89 Helpviewer.HelpWindow.HelpWindow.adBlockManager().setExceptions(hosts)
91 90
92 super().accept() 91 super().accept()

eric ide

mercurial