aboutsummaryrefslogtreecommitdiffstats
path: root/keydetailsdialog.cpp
diff options
context:
space:
mode:
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)) {