diff options
Diffstat (limited to 'src/qmltest/quicktest.cpp')
-rw-r--r-- | src/qmltest/quicktest.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/qmltest/quicktest.cpp b/src/qmltest/quicktest.cpp index cfc9221b20..312769b8d3 100644 --- a/src/qmltest/quicktest.cpp +++ b/src/qmltest/quicktest.cpp @@ -457,7 +457,7 @@ int quick_test_main_with_setup(int argc, char **argv, const char *name, const ch } #endif -#if defined(Q_OS_ANDROID) || defined(Q_OS_WINRT) +#if defined(Q_OS_WINRT) if (testPath.isEmpty()) testPath = QLatin1String(":/"); #endif @@ -468,6 +468,12 @@ int quick_test_main_with_setup(int argc, char **argv, const char *name, const ch if (QFile::exists(s)) testPath = s; } + +#if defined(Q_OS_ANDROID) + if (testPath.isEmpty()) + testPath = QLatin1String(":/"); +#endif + if (testPath.isEmpty()) { QDir current = QDir::current(); #ifdef Q_OS_WIN |