Update src/UserSettingsPage.cpp

Co-authored-by: Urszula <u.wnuk@proton.me>
This commit is contained in:
Integral 2024-05-26 02:22:14 +00:00 committed by GitHub
parent 1ab3a37056
commit 95dc80ddec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2141,6 +2141,11 @@ UserSettingsModel::exportSessionKeys()
return; return;
} }
if (repeatedPassword.isEmpty()) {
QMessageBox::warning(nullptr, tr("Error"), tr("Please repeat the password"));
return;
}
if (password != repeatedPassword) { if (password != repeatedPassword) {
QMessageBox::warning(nullptr, tr("Error"), tr("Passwords don't match")); QMessageBox::warning(nullptr, tr("Error"), tr("Passwords don't match"));
return; return;