--- a/src/core/web_engine_library_info.cpp +++ b/src/core/web_engine_library_info.cpp @@ -273,7 +273,6 @@ QString dictionariesPath() QString resourcesDataPath() { - static bool initialized = false; static QString potentialResourcesPath = #if defined(OS_MAC) && defined(QT_MAC_FRAMEWORK_BUILD) getResourcesPath(frameworkBundle()); @@ -282,6 +281,7 @@ QString resourcesDataPath() #else QLibraryInfo::location(QLibraryInfo::DataPath) % QLatin1String("/resources"); #endif +#if 0 if (!initialized) { initialized = true; if (!QFileInfo::exists(potentialResourcesPath % QLatin1String("/qtwebengine_resources.pak"))) { @@ -297,6 +297,7 @@ QString resourcesDataPath() potentialResourcesPath = fallbackDir(); } } +#endif return potentialResourcesPath; }