diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-05-01 03:49:46 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-05-01 03:49:46 +0200 |
commit | b0bfffcd904503fecec239225f88f7ae4dc14dc6 (patch) | |
tree | f80f6c3813c7b7747221f188df882e70828ab76d /api | |
parent | 80b28e7d49d98a990e4d56bba4eb2e4a1bca1a94 (diff) | |
download | MultiMC-b0bfffcd904503fecec239225f88f7ae4dc14dc6.tar MultiMC-b0bfffcd904503fecec239225f88f7ae4dc14dc6.tar.gz MultiMC-b0bfffcd904503fecec239225f88f7ae4dc14dc6.tar.lz MultiMC-b0bfffcd904503fecec239225f88f7ae4dc14dc6.tar.xz MultiMC-b0bfffcd904503fecec239225f88f7ae4dc14dc6.zip |
NOISSUE revert to dumping all build artifacts to the root
This fixes unit tests on Windows... Windows has no mechanism to set library lookup path.
Diffstat (limited to 'api')
-rw-r--r-- | api/logic/updater/DownloadTask_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/api/logic/updater/DownloadTask_test.cpp b/api/logic/updater/DownloadTask_test.cpp index edf0f507..5b88b366 100644 --- a/api/logic/updater/DownloadTask_test.cpp +++ b/api/logic/updater/DownloadTask_test.cpp @@ -12,7 +12,7 @@ using namespace GoUpdate; FileSourceList encodeBaseFile(const char *suffix) { - auto base = qApp->applicationDirPath(); + auto base = QDir::currentPath(); QUrl localFile = QUrl::fromLocalFile(base + suffix); QString localUrlString = localFile.toString(QUrl::FullyEncoded); auto item = FileSource("http", localUrlString); @@ -179,7 +179,7 @@ slots: OperationList operations; - processFileLists(currentVersion, newVersion, QCoreApplication::applicationDirPath(), tempFolder, new NetJob("Dummy"), operations); + processFileLists(currentVersion, newVersion, QDir::currentPath(), tempFolder, new NetJob("Dummy"), operations); qDebug() << (operations == expectedOperations); qDebug() << operations; qDebug() << expectedOperations; |