d122c01
diff -up qtwebengine-everywhere-src-5.15.5/src/core/web_engine_library_info.cpp.no-icudtl-dat qtwebengine-everywhere-src-5.15.5/src/core/web_engine_library_info.cpp
d122c01
--- qtwebengine-everywhere-src-5.15.5/src/core/web_engine_library_info.cpp.no-icudtl-dat	2021-06-24 07:26:58.976486102 -0500
d122c01
+++ qtwebengine-everywhere-src-5.15.5/src/core/web_engine_library_info.cpp	2021-06-24 07:32:19.272863523 -0500
d122c01
@@ -273,7 +273,6 @@ QString dictionariesPath()
635c366
 
66fb455
 QString resourcesDataPath()
635c366
 {
635c366
-    static bool initialized = false;
635c366
     static QString potentialResourcesPath =
d122c01
 #if defined(OS_MAC) && defined(QT_MAC_FRAMEWORK_BUILD)
635c366
             getResourcesPath(frameworkBundle());
d122c01
@@ -282,21 +281,6 @@ QString resourcesDataPath()
Kevin Kofler 4f844a7
 #else
635c366
             QLibraryInfo::location(QLibraryInfo::DataPath) % QLatin1String("/resources");
635c366
 #endif
Kevin Kofler 4f844a7
-    if (!initialized) {
Kevin Kofler 4f844a7
-        initialized = true;
66fb455
-        if (!QFileInfo::exists(potentialResourcesPath % QLatin1String("/qtwebengine_resources.pak"))) {
66fb455
-            qWarning("Qt WebEngine resources not found at %s. Trying parent directory...", qPrintable(potentialResourcesPath));
Kevin Kofler 4f844a7
-            potentialResourcesPath = QLibraryInfo::location(QLibraryInfo::DataPath);
Kevin Kofler 4f844a7
-        }
66fb455
-        if (!QFileInfo::exists(potentialResourcesPath % QLatin1String("/qtwebengine_resources.pak"))) {
66fb455
-            qWarning("Qt WebEngine resources not found at %s. Trying application directory...", qPrintable(potentialResourcesPath));
Kevin Kofler 4f844a7
-            potentialResourcesPath = QCoreApplication::applicationDirPath();
Kevin Kofler 4f844a7
-        }
66fb455
-        if (!QFileInfo::exists(potentialResourcesPath % QLatin1String("/qtwebengine_resources.pak"))) {
66fb455
-            qWarning("Qt WebEngine resources not found at %s. Trying fallback directory... The application MAY NOT work.", qPrintable(potentialResourcesPath));
Kevin Kofler 4f844a7
-            potentialResourcesPath = fallbackDir();
Kevin Kofler 4f844a7
-        }
Kevin Kofler 4f844a7
-    }
d122c01
 
Kevin Kofler 4f844a7
     return potentialResourcesPath;
Kevin Kofler 4f844a7
 }