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