635c366
diff -up qtwebengine-everywhere-src-5.11.0/src/core/web_engine_library_info.cpp.no-icudtl-dat qtwebengine-everywhere-src-5.11.0/src/core/web_engine_library_info.cpp
635c366
--- qtwebengine-everywhere-src-5.11.0/src/core/web_engine_library_info.cpp.no-icudtl-dat	2018-06-14 09:23:48.931195271 -0500
635c366
+++ qtwebengine-everywhere-src-5.11.0/src/core/web_engine_library_info.cpp	2018-06-14 09:27:26.248014325 -0500
635c366
@@ -258,28 +258,12 @@ QString dictionariesPath()
635c366
 
635c366
 QString icuDataPath()
635c366
 {
635c366
-    static bool initialized = false;
635c366
     static QString potentialResourcesPath =
Kevin Kofler 4f844a7
 #if defined(OS_MACOSX) && defined(QT_MAC_FRAMEWORK_BUILD)
635c366
             getResourcesPath(frameworkBundle());
Kevin Kofler 4f844a7
 #else
635c366
             QLibraryInfo::location(QLibraryInfo::DataPath) % QLatin1String("/resources");
635c366
 #endif
Kevin Kofler 4f844a7
-    if (!initialized) {
Kevin Kofler 4f844a7
-        initialized = true;
Kevin Kofler 4f844a7
-        if (!QFileInfo::exists(potentialResourcesPath % QLatin1String("/icudtl.dat"))) {
Kevin Kofler 4f844a7
-            qWarning("Qt WebEngine ICU data not found at %s. Trying parent directory...", qPrintable(potentialResourcesPath));
Kevin Kofler 4f844a7
-            potentialResourcesPath = QLibraryInfo::location(QLibraryInfo::DataPath);
Kevin Kofler 4f844a7
-        }
Kevin Kofler 4f844a7
-        if (!QFileInfo::exists(potentialResourcesPath % QLatin1String("/icudtl.dat"))) {
Kevin Kofler 4f844a7
-            qWarning("Qt WebEngine ICU data not found at %s. Trying application directory...", qPrintable(potentialResourcesPath));
Kevin Kofler 4f844a7
-            potentialResourcesPath = QCoreApplication::applicationDirPath();
Kevin Kofler 4f844a7
-        }
Kevin Kofler 4f844a7
-        if (!QFileInfo::exists(potentialResourcesPath % QLatin1String("/icudtl.dat"))) {
Kevin Kofler 4f844a7
-            qWarning("Qt WebEngine ICU data 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
-    }
635c366
 
Kevin Kofler 4f844a7
     return potentialResourcesPath;
Kevin Kofler 4f844a7
 }