5868 @param newPassword new master password (string) |
5868 @param newPassword new master password (string) |
5869 """ |
5869 """ |
5870 self.masterPasswordChanged.emit(oldPassword, newPassword) |
5870 self.masterPasswordChanged.emit(oldPassword, newPassword) |
5871 Preferences.convertPasswords(oldPassword, newPassword) |
5871 Preferences.convertPasswords(oldPassword, newPassword) |
5872 if self.helpWindow is None: |
5872 if self.helpWindow is None: |
5873 from Helpviewer.Passwords.PasswordManager import PasswordManager |
5873 if WEBENGINE_AVAILABLE: |
5874 pwManager = PasswordManager() |
5874 from WebBrowser.Passwords.PasswordManager import \ |
5875 pwManager.masterPasswordChanged(oldPassword, newPassword) |
5875 PasswordManager |
|
5876 pwManager = PasswordManager() |
|
5877 pwManager.masterPasswordChanged(oldPassword, newPassword) |
|
5878 elif WEBKIT_AVAILABLE: |
|
5879 from Helpviewer.Passwords.PasswordManager import \ |
|
5880 PasswordManager |
|
5881 pwManager = PasswordManager() |
|
5882 pwManager.masterPasswordChanged(oldPassword, newPassword) |
5876 Utilities.crypto.changeRememberedMaster(newPassword) |
5883 Utilities.crypto.changeRememberedMaster(newPassword) |
5877 |
5884 |
5878 def __reloadAPIs(self): |
5885 def __reloadAPIs(self): |
5879 """ |
5886 """ |
5880 Private slot to reload the api information. |
5887 Private slot to reload the api information. |
7050 p = w.pos() |
7057 p = w.pos() |
7051 return [p.x(), p.y(), s.width(), s.height(), not w.isHidden()] |
7058 return [p.x(), p.y(), s.width(), s.height(), not w.isHidden()] |
7052 |
7059 |
7053 def getOriginalPathString(self): |
7060 def getOriginalPathString(self): |
7054 """ |
7061 """ |
7055 Public method to get the original PATH environment variable (i.e. |
7062 Public method to get the original PATH environment variable |
7056 before modifications by eric6 and PyQt5) |
7063 (i.e. before modifications by eric6 and PyQt5). |
7057 |
7064 |
7058 @return original PATH environment variable |
7065 @return original PATH environment variable |
7059 @rtype str |
7066 @rtype str |
7060 """ |
7067 """ |
7061 return self.__originalPathString |
7068 return self.__originalPathString |