Fixed a little issue using the authentication dialog from the old and new web browsers.

Fri, 09 Dec 2016 18:32:57 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 09 Dec 2016 18:32:57 +0100
changeset 5366
001edc0a0807
parent 5365
f0cb73e99e54
child 5367
7123b86157b5

Fixed a little issue using the authentication dialog from the old and new web browsers.

Helpviewer/Network/NetworkAccessManager.py file | annotate | diff | comparison | revisions
WebBrowser/Network/NetworkManager.py file | annotate | diff | comparison | revisions
diff -r f0cb73e99e54 -r 001edc0a0807 Helpviewer/Network/NetworkAccessManager.py
--- a/Helpviewer/Network/NetworkAccessManager.py	Tue Dec 06 19:41:38 2016 +0100
+++ b/Helpviewer/Network/NetworkAccessManager.py	Fri Dec 09 18:32:57 2016 +0100
@@ -233,7 +233,7 @@
             username, password = dlg.getData()
             auth.setUser(username)
             auth.setPassword(password)
-            if Preferences.getUser("SavePasswords"):
+            if Preferences.getUser("SavePasswords") and dlg.shallSave():
                 Helpviewer.HelpWindow.HelpWindow.passwordManager().setLogin(
                     reply.url(), realm, username, password)
     
diff -r f0cb73e99e54 -r 001edc0a0807 WebBrowser/Network/NetworkManager.py
--- a/WebBrowser/Network/NetworkManager.py	Tue Dec 06 19:41:38 2016 +0100
+++ b/WebBrowser/Network/NetworkManager.py	Fri Dec 09 18:32:57 2016 +0100
@@ -243,7 +243,7 @@
             username, password = dlg.getData()
             auth.setUser(username)
             auth.setPassword(password)
-            if Preferences.getUser("SavePasswords"):
+            if Preferences.getUser("SavePasswords") and dlg.shallSave():
                 WebBrowser.WebBrowserWindow.WebBrowserWindow.passwordManager()\
                     .setLogin(url, realm, username, password)
         else:

eric ide

mercurial