diff options
author | saturneric <[email protected]> | 2025-04-17 15:28:04 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2025-04-17 15:28:04 +0000 |
commit | e276f9e86b161362d6f379ab790476936a0e6208 (patch) | |
tree | 65c27e3efcbf113a052bc053e1c2739f4a351217 /src/ui/dialog/key_generate/KeyGenerateDialog.cpp | |
parent | fix: compiler issues on CI (diff) | |
download | GpgFrontend-e276f9e86b161362d6f379ab790476936a0e6208.tar.gz GpgFrontend-e276f9e86b161362d6f379ab790476936a0e6208.zip |
feat: generate cark keys
Diffstat (limited to 'src/ui/dialog/key_generate/KeyGenerateDialog.cpp')
-rw-r--r-- | src/ui/dialog/key_generate/KeyGenerateDialog.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/ui/dialog/key_generate/KeyGenerateDialog.cpp b/src/ui/dialog/key_generate/KeyGenerateDialog.cpp index 0a2dbe1a..d738029d 100644 --- a/src/ui/dialog/key_generate/KeyGenerateDialog.cpp +++ b/src/ui/dialog/key_generate/KeyGenerateDialog.cpp @@ -157,7 +157,7 @@ void KeyGenerateDialog::slot_key_gen_accept() { << Qt::endl; } if (ui_->emailEdit->text().isEmpty() || - !check_email_address(ui_->emailEdit->text())) { + !IsEmailAddress(ui_->emailEdit->text())) { err_stream << " -> " << tr("Please give a valid email address.") << Qt::endl; } @@ -454,10 +454,6 @@ void KeyGenerateDialog::set_signal_slot_config() { &UISignalStation::SignalKeyDatabaseRefresh); } -auto KeyGenerateDialog::check_email_address(const QString& str) -> bool { - return re_email_.match(str).hasMatch(); -} - void KeyGenerateDialog::sync_gen_key_algo_info() { auto [found, algo] = GetAlgoByName(ui_->pAlgoComboBox->currentText(), |