8 """ |
8 """ |
9 |
9 |
10 from PyQt6.QtCore import pyqtSlot, Qt, QByteArray |
10 from PyQt6.QtCore import pyqtSlot, Qt, QByteArray |
11 from PyQt6.QtWidgets import QDialog, QTreeWidgetItem, QHeaderView |
11 from PyQt6.QtWidgets import QDialog, QTreeWidgetItem, QHeaderView |
12 |
12 |
13 from E5Gui import E5MessageBox |
13 from E5Gui import EricMessageBox |
14 |
14 |
15 from .Ui_CookiesDialog import Ui_CookiesDialog |
15 from .Ui_CookiesDialog import Ui_CookiesDialog |
16 |
16 |
17 |
17 |
18 class CookiesDialog(QDialog, Ui_CookiesDialog): |
18 class CookiesDialog(QDialog, Ui_CookiesDialog): |
139 @pyqtSlot() |
139 @pyqtSlot() |
140 def on_removeAllButton_clicked(self): |
140 def on_removeAllButton_clicked(self): |
141 """ |
141 """ |
142 Private slot to remove all cookies. |
142 Private slot to remove all cookies. |
143 """ |
143 """ |
144 res = E5MessageBox.yesNo( |
144 res = EricMessageBox.yesNo( |
145 self, |
145 self, |
146 self.tr("Remove All Cookies"), |
146 self.tr("Remove All Cookies"), |
147 self.tr("""Do you really want to remove all stored cookies?""")) |
147 self.tr("""Do you really want to remove all stored cookies?""")) |
148 if res: |
148 if res: |
149 self.__cookieJar.clear() |
149 self.__cookieJar.clear() |