Removed odd Qt.callLater

This commit is contained in:
Andrei Smirnov 2021-08-12 14:13:26 +03:00 committed by Iuri Matias
parent 60bfc22823
commit 84472fbcb9
1 changed files with 6 additions and 8 deletions

View File

@ -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.")
}
}
}
}