Commit 0b0721ba authored by Karel Slaný's avatar Karel Slaný

Added an error message when compiling with Qt 5.9.4 and 5.10.0 for Android.

parent a4e96351
......@@ -453,6 +453,18 @@ int main(int argc, char *argv[])
engine.addImageProvider(IMAGE_PROVIDER_ID, GlobInstcs::imgProvPtr);
/*
* The function below does not work on Qt-5.9.4 and Qt-5.10.0 as
* QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation)
* returns "/".
*
* See: https://bugreports.qt.io/browse/QTBUG-66005
*/
#if defined(Q_OS_ANDROID)
# if (QT_VERSION == QT_VERSION_CHECK(5, 9, 4)) || (QT_VERSION == QT_VERSION_CHECK(5, 10, 0))
# error("The application is likely to crash; see QTBUG-66005.")
# endif
#endif /* Q_OS_ANDROID */
QString dirName(
existingWritableLocation(QStandardPaths::AppDataLocation));
if (dirName.isEmpty()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment