qt: Fix 2.1 t-support copy

* lang/qt/src/t-support.cpp (copyKeyring): Fix seckey copy.
This commit is contained in:
Andre Heinecke 2016-08-25 17:16:25 +02:00
parent 9fc72e928b
commit 05570bd3d0

View File

@ -63,7 +63,9 @@ bool QGpgMETest::copyKeyrings(const QString &src, const QString &dest)
return false;
}
foreach (QString f, dir.entryList(QDir::Files)) {
if (!QFile::copy(src + QDir::separator() + f, dest + QDir::separator() + f)) {
if (!QFile::copy(dir.path() + QDir::separator() + f,
dest + QDir::separator() +
QStringLiteral("private-keys-v1.d") + QDir::separator() + f)) {
return false;
}
}