diff options
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(), |