22 Constructor |
22 Constructor |
23 |
23 |
24 @param oldPasswordHash hash of the current password (string) |
24 @param oldPasswordHash hash of the current password (string) |
25 @param parent reference to the parent widget (QWidget) |
25 @param parent reference to the parent widget (QWidget) |
26 """ |
26 """ |
27 super(MasterPasswordEntryDialog, self).__init__(parent) |
27 super().__init__(parent) |
28 self.setupUi(self) |
28 self.setupUi(self) |
29 |
29 |
30 self.__oldPasswordHash = oldPasswordHash |
30 self.__oldPasswordHash = oldPasswordHash |
31 if self.__oldPasswordHash == "": |
31 if self.__oldPasswordHash == "": |
32 self.currentPasswordEdit.setEnabled(False) |
32 self.currentPasswordEdit.setEnabled(False) |