Removed odd Qt.callLater
This commit is contained in:
parent
60bfc22823
commit
84472fbcb9
|
@ -120,14 +120,12 @@ ModalPopup {
|
|||
|
||||
onClicked: {
|
||||
popup.loading = true
|
||||
Qt.callLater(function() {
|
||||
if (profileModel.changePassword(currentPasswordField.text, firstPasswordField.text)) {
|
||||
popup.close()
|
||||
} else {
|
||||
reset()
|
||||
changePasswordError = qsTr("Failed to change password.")
|
||||
}
|
||||
})
|
||||
if (profileModel.changePassword(currentPasswordField.text, firstPasswordField.text)) {
|
||||
popup.close()
|
||||
} else {
|
||||
reset()
|
||||
changePasswordError = qsTr("Failed to change password.")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue