summary refs log tree commit diff
diff options
context:
space:
mode:
authorIntegral <integral@member.fsf.org>2024-05-26 02:22:14 +0000
committerGitHub <noreply@github.com>2024-05-26 02:22:14 +0000
commit95dc80ddecc3f39757f398b53c6abd267852c69f (patch)
tree941649a8aabb324b446bbc32851267909e7dd7cc
parentAdd dialog for repeating password when exporting keys (diff)
downloadnheko-95dc80ddecc3f39757f398b53c6abd267852c69f.tar.xz
Update src/UserSettingsPage.cpp
Co-authored-by: Urszula <u.wnuk@proton.me>
-rw-r--r--src/UserSettingsPage.cpp5
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;