45 elif keepPolicy == CookieJar.KeepUntilExit: |
47 elif keepPolicy == CookieJar.KeepUntilExit: |
46 self.keepUntilCombo.setCurrentIndex(1) |
48 self.keepUntilCombo.setCurrentIndex(1) |
47 elif keepPolicy == CookieJar.KeepUntilTimeLimit: |
49 elif keepPolicy == CookieJar.KeepUntilTimeLimit: |
48 self.keepUntilCombo.setCurrentIndex(2) |
50 self.keepUntilCombo.setCurrentIndex(2) |
49 |
51 |
50 self.filterTrackingCookiesCheckbox.setChecked(jar.filterTrackingCookies()) |
52 self.filterTrackingCookiesCheckbox.setChecked( |
|
53 jar.filterTrackingCookies()) |
51 |
54 |
52 def accept(self): |
55 def accept(self): |
53 """ |
56 """ |
54 Public slot to accept the dialog. |
57 Public slot to accept the dialog. |
55 """ |
58 """ |
70 keepPolicy = CookieJar.KeepUntilTimeLimit |
73 keepPolicy = CookieJar.KeepUntilTimeLimit |
71 |
74 |
72 jar = self.__mw.cookieJar() |
75 jar = self.__mw.cookieJar() |
73 jar.setAcceptPolicy(acceptPolicy) |
76 jar.setAcceptPolicy(acceptPolicy) |
74 jar.setKeepPolicy(keepPolicy) |
77 jar.setKeepPolicy(keepPolicy) |
75 jar.setFilterTrackingCookies(self.filterTrackingCookiesCheckbox.isChecked()) |
78 jar.setFilterTrackingCookies( |
|
79 self.filterTrackingCookiesCheckbox.isChecked()) |
76 |
80 |
77 super(CookiesConfigurationDialog, self).accept() |
81 super(CookiesConfigurationDialog, self).accept() |
78 |
82 |
79 @pyqtSlot() |
83 @pyqtSlot() |
80 def on_exceptionsButton_clicked(self): |
84 def on_exceptionsButton_clicked(self): |