Fixed a few issues in the cookies exception dialog. 6_1_x

Sat, 12 Mar 2016 15:44:24 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 12 Mar 2016 15:44:24 +0100
branch
6_1_x
changeset 4844
fcb19b666d96
parent 4842
b43c88b08ad0
child 4848
36b1d9bec8f6

Fixed a few issues in the cookies exception dialog.
(grafted from c43d8f32e100638448948ebb6068afd0aa765763)

Helpviewer/CookieJar/CookieExceptionsModel.py file | annotate | diff | comparison | revisions
Helpviewer/CookieJar/CookiesExceptionsDialog.py file | annotate | diff | comparison | revisions
diff -r b43c88b08ad0 -r fcb19b666d96 Helpviewer/CookieJar/CookieExceptionsModel.py
--- a/Helpviewer/CookieJar/CookieExceptionsModel.py	Sat Mar 12 15:21:19 2016 +0100
+++ b/Helpviewer/CookieJar/CookieExceptionsModel.py	Sat Mar 12 15:44:24 2016 +0100
@@ -221,7 +221,7 @@
         else:
             otherRule = '.' + host
         if otherRule in addList:
-            addList.removeOne(otherRule)
+            addList.remove(otherRule)
         if otherRule in removeList1:
             removeList1.remove(otherRule)
         if otherRule in removeList2:
diff -r b43c88b08ad0 -r fcb19b666d96 Helpviewer/CookieJar/CookiesExceptionsDialog.py
--- a/Helpviewer/CookieJar/CookiesExceptionsDialog.py	Sat Mar 12 15:21:19 2016 +0100
+++ b/Helpviewer/CookieJar/CookiesExceptionsDialog.py	Sat Mar 12 15:44:24 2016 +0100
@@ -96,6 +96,7 @@
         """
         from .CookieJar import CookieJar
         self.__exceptionsModel.addRule(self.domainEdit.text(), CookieJar.Block)
+        self.domainEdit.clear()
     
     @pyqtSlot()
     def on_allowForSessionButton_clicked(self):
@@ -105,6 +106,7 @@
         from .CookieJar import CookieJar
         self.__exceptionsModel.addRule(self.domainEdit.text(),
                                        CookieJar.AllowForSession)
+        self.domainEdit.clear()
     
     @pyqtSlot()
     def on_allowButton_clicked(self):
@@ -113,3 +115,4 @@
         """
         from .CookieJar import CookieJar
         self.__exceptionsModel.addRule(self.domainEdit.text(), CookieJar.Allow)
+        self.domainEdit.clear()

eric ide

mercurial