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.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/dialog/keypair_details/KeyNewUIDDialog.cpp b/src/ui/dialog/keypair_details/KeyNewUIDDialog.cpp
index 71a2c14b..a548c18d 100644
--- a/src/ui/dialog/keypair_details/KeyNewUIDDialog.cpp
+++ b/src/ui/dialog/keypair_details/KeyNewUIDDialog.cpp
@@ -90,12 +90,12 @@ void KeyNewUIDDialog::slot_create_new_uid() {
auto error_string = error_stream.str();
if (error_string.empty()) {
if (GpgUIDOperator::GetInstance().AddUID(
- m_key_, name_->text().toStdString(), comment_->text().toStdString(),
- email_->text().toStdString())) {
+ m_key_, name_->text(), comment_->text(), email_->text())) {
emit finished(1);
emit SignalUIDCreated();
- } else
+ } else {
emit finished(-1);
+ }
} else {
/**