From 2027237de006cb9fa40a73365cbbc8911572969c Mon Sep 17 00:00:00 2001 From: saturneric Date: Wed, 16 Apr 2025 02:53:22 +0200 Subject: fix: found bugs --- src/ui/dialog/keypair_details/KeyNewUIDDialog.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ui/dialog/keypair_details/KeyNewUIDDialog.cpp') diff --git a/src/ui/dialog/keypair_details/KeyNewUIDDialog.cpp b/src/ui/dialog/keypair_details/KeyNewUIDDialog.cpp index d641c4d3..d05154d5 100644 --- a/src/ui/dialog/keypair_details/KeyNewUIDDialog.cpp +++ b/src/ui/dialog/keypair_details/KeyNewUIDDialog.cpp @@ -75,6 +75,8 @@ KeyNewUIDDialog::KeyNewUIDDialog(int channel, GpgKeyPtr key, QWidget* parent) connect(this, &KeyNewUIDDialog::SignalUIDCreated, UISignalStation::GetInstance(), &UISignalStation::SignalKeyDatabaseRefresh); + connect(this, &KeyNewUIDDialog::SignalUIDCreated, this, + &KeyNewUIDDialog::close); } void KeyNewUIDDialog::slot_create_new_uid() { @@ -117,7 +119,7 @@ void KeyNewUIDDialog::slot_create_new_uid() { } } -bool KeyNewUIDDialog::check_email_address(const QString& str) { +auto KeyNewUIDDialog::check_email_address(const QString& str) -> bool { return re_email_.match(str).hasMatch(); } } // namespace GpgFrontend::UI -- cgit v1.2.3