aboutsummaryrefslogtreecommitdiffstats
path: root/keydetailsdialog.cpp
diff options
context:
space:
mode:
authorubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2012-04-02 20:47:43 +0000
committerubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2012-04-02 20:47:43 +0000
commit0ee455edb62a254fb1b7e6faa9448121215ed219 (patch)
treea5db01f238642a6c861cf1070c20a01fb4ba16c3 /keydetailsdialog.cpp
parentadd arabic translation files (diff)
downloadgpg4usb-0ee455edb62a254fb1b7e6faa9448121215ed219.tar.gz
gpg4usb-0ee455edb62a254fb1b7e6faa9448121215ed219.zip
merge with 0.3.2
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@877 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'keydetailsdialog.cpp')
-rw-r--r--keydetailsdialog.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/keydetailsdialog.cpp b/keydetailsdialog.cpp
index aeaa69c..5a66122 100644
--- a/keydetailsdialog.cpp
+++ b/keydetailsdialog.cpp
@@ -34,12 +34,12 @@ KeyDetailsDialog::KeyDetailsDialog(GpgME::GpgContext* ctx, gpgme_key_t key, QWid
buttonBox = new QDialogButtonBox(QDialogButtonBox::Close);
connect(buttonBox, SIGNAL(rejected()), this, SLOT(close()));
- nameVarLabel = new QLabel(key->uids->name);
+ nameVarLabel = new QLabel(QString::fromUtf8(key->uids->name));
nameVarLabel->setTextInteractionFlags(Qt::TextSelectableByMouse);
- emailVarLabel = new QLabel(key->uids->email);
+ emailVarLabel = new QLabel(QString::fromUtf8(key->uids->email));
emailVarLabel->setTextInteractionFlags(Qt::TextSelectableByMouse);
- commentVarLabel = new QLabel(key->uids->comment);
+ commentVarLabel = new QLabel(QString::fromUtf8(key->uids->comment));
commentVarLabel->setTextInteractionFlags(Qt::TextSelectableByMouse);
keyidVarLabel = new QLabel(key->subkeys->keyid);
keyidVarLabel->setTextInteractionFlags(Qt::TextSelectableByMouse);
@@ -195,7 +195,7 @@ void KeyDetailsDialog::exportPrivateKey()
QByteArray *keyArray = new QByteArray();
mCtx->exportSecretKey(*keyid, keyArray);
gpgme_key_t key = mCtx->getKeyDetails(*keyid);
- QString fileString = QString(key->uids->name) + " " + QString(key->uids->email) + "(" + QString(key->subkeys->keyid)+ ")_pub_sec.asc";
+ QString fileString = QString::fromUtf8(key->uids->name) + " " + QString::fromUtf8(key->uids->email) + "(" + QString(key->subkeys->keyid)+ ")_pub_sec.asc";
QString fileName = QFileDialog::getSaveFileName(this, tr("Export Key To File"), fileString, tr("Key Files") + " (*.asc *.txt);;All Files (*)");
QFile file(fileName);
if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) {