src/eric7/WebBrowser/WebBrowserClearPrivateDataDialog.py

branch
eric7
changeset 11104
683af9c45c5b
parent 11090
f5f5f5803935
child 11105
ec86fc991d28
--- a/src/eric7/WebBrowser/WebBrowserClearPrivateDataDialog.py	Wed Dec 18 17:20:28 2024 +0100
+++ b/src/eric7/WebBrowser/WebBrowserClearPrivateDataDialog.py	Wed Dec 18 17:40:14 2024 +0100
@@ -9,6 +9,8 @@
 
 from PyQt6.QtWidgets import QDialog
 
+from eric7.SystemUtilities import QtUtilities
+
 from .Ui_WebBrowserClearPrivateDataDialog import Ui_WebBrowserClearPrivateDataDialog
 
 
@@ -27,6 +29,8 @@
         super().__init__(parent)
         self.setupUi(self)
 
+        self.permissionsCheckBox.setEnabled(QtUtilities.qVersionTuple() >= (6, 8, 0))
+
         msh = self.minimumSizeHint()
         self.resize(max(self.width(), msh.width()), msh.height())
 
@@ -36,9 +40,10 @@
 
         @return tuple with flags indicating which data to clear
             (browsing history, search history, favicons, disk cache, cookies,
-            passwords, downloads, zoom values, SSL certificate error exceptions) and
-            the selected history period in milliseconds
-        @rtype tuple of (bool, bool, bool, bool, bool, bool, bool, bool, bool, int)
+            passwords, downloads, zoom values, SSL certificate error exceptions,
+            website permissions) and the selected history period in milliseconds
+        @rtype tuple of (bool, bool, bool, bool, bool, bool, bool, bool, bool, bool,
+            int)
         """
         index = self.historyCombo.currentIndex()
         if index == 0:
@@ -67,5 +72,8 @@
             self.downloadsCheckBox.isChecked(),
             self.zoomCheckBox.isChecked(),
             self.sslExceptionsCheckBox.isChecked(),
+            self.permissionsCheckBox.isChecked()
+            if QtUtilities.qVersionTuple() >= (6, 8, 0)
+            else False,
             historyPeriod,
         )

eric ide

mercurial