aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2012-03-31 16:39:22 +0000
committernils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2012-03-31 16:39:22 +0000
commit19ab5243bd3ccff9dd1873380d2b3d0a9e7fd7d9 (patch)
tree45db2a3383e2a1d3178e3e298dbfcea3bd43830d
parentsome minor fixed in translation files (diff)
downloadgpg4usb-19ab5243bd3ccff9dd1873380d2b3d0a9e7fd7d9.tar.gz
gpg4usb-19ab5243bd3ccff9dd1873380d2b3d0a9e7fd7d9.zip
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
-rw-r--r--keygendialog.cpp4
1 files 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";