From 19ab5243bd3ccff9dd1873380d2b3d0a9e7fd7d9 Mon Sep 17 00:00:00 2001 From: nils Date: Sat, 31 Mar 2012 16:39:22 +0000 Subject: change name and comment lineedits in key generation to utf8, so that encoding in the keys is proper git-svn-id: http://cpunk.de/svn/src/gpg4usb/branches/0.3.2@870 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- keygendialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keygendialog.cpp b/keygendialog.cpp index 7b3b249..2743098 100644 --- a/keygendialog.cpp +++ b/keygendialog.cpp @@ -130,9 +130,9 @@ void KeyGenDialog::keyGenAccept() "Subkey-Type: ELG-E\n" "Subkey-Length: " + keySizeSpinBox->cleanText() + "\n" - "Name-Real: " + nameEdit->text() + "\n"; + "Name-Real: " + nameEdit->text().toUtf8() + "\n"; if (!(commentEdit->text().isEmpty())) { - keyGenParams += "Name-Comment: " + commentEdit->text() + "\n"; + keyGenParams += "Name-Comment: " + commentEdit->text().toUtf8() + "\n"; } if (!(emailEdit->text().isEmpty())) { keyGenParams += "Name-Email: " + emailEdit->text() + "\n"; -- cgit v1.2.3