aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/keypair_details/KeyNewUIDDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/dialog/keypair_details/KeyNewUIDDialog.cpp')
-rw-r--r--src/ui/dialog/keypair_details/KeyNewUIDDialog.cpp4
1 files changed, 3 insertions, 1 deletions
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