Fixed a few issues in the cookies exception dialog.

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 12 Mar 2016 15:44:24 +0100
changeset 4843
c43d8f32e100
parent 4841
fd8b88eb96c7
child 4850
ab7a57e78fd9

Fixed a few issues in the cookies exception dialog.

Helpviewer/CookieJar/CookieExceptionsModel.py file | annotate | diff | comparison | revisions
Helpviewer/CookieJar/CookiesExceptionsDialog.py file | annotate | diff | comparison | revisions
--- 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:
--- 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