qt: Fix 2.1 t-support copy
authorAndre Heinecke <aheinecke@intevation.de>
Thu, 25 Aug 2016 15:16:25 +0000 (17:16 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Thu, 25 Aug 2016 15:16:25 +0000 (17:16 +0200)
* lang/qt/src/t-support.cpp (copyKeyring): Fix seckey copy.

lang/qt/tests/t-support.cpp

index 27c0132..2b21ce7 100644 (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;
         }
     }