diff options
author | Integral <integral@member.fsf.org> | 2024-05-26 02:22:14 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-26 02:22:14 +0000 |
commit | 95dc80ddecc3f39757f398b53c6abd267852c69f (patch) | |
tree | 941649a8aabb324b446bbc32851267909e7dd7cc | |
parent | Add dialog for repeating password when exporting keys (diff) | |
download | nheko-95dc80ddecc3f39757f398b53c6abd267852c69f.tar.xz |
Update src/UserSettingsPage.cpp
Co-authored-by: Urszula <u.wnuk@proton.me>
-rw-r--r-- | src/UserSettingsPage.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/UserSettingsPage.cpp b/src/UserSettingsPage.cpp index 0ba2386c..4dfdc96a 100644 --- a/src/UserSettingsPage.cpp +++ b/src/UserSettingsPage.cpp @@ -2141,6 +2141,11 @@ UserSettingsModel::exportSessionKeys() return; } + if (repeatedPassword.isEmpty()) { + QMessageBox::warning(nullptr, tr("Error"), tr("Please repeat the password")); + return; + } + if (password != repeatedPassword) { QMessageBox::warning(nullptr, tr("Error"), tr("Passwords don't match")); return; |