Change fatal exit in QPlatformFontDatabase to a warning.
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>
Mon, 2 Apr 2012 09:41:28 +0000 (11:41 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 2 Apr 2012 14:56:48 +0000 (16:56 +0200)
Only warn if the folder containing the qpf2 files is not found.
The code path is triggered by the QPA 'minimal' plugin.

Change-Id: I12a32001ce867096627033b1d5fb894cab163853
Reviewed-by: Denis Dzyubenko <denis.dzyubenko@nokia.com>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
src/gui/text/qplatformfontdatabase_qpa.cpp

index 6bd8284..6af0398 100644 (file)
@@ -250,10 +250,10 @@ QPlatformFontDatabase::~QPlatformFontDatabase()
 void QPlatformFontDatabase::populateFontDatabase()
 {
     QString fontpath = fontDir();
-
     if(!QFile::exists(fontpath)) {
-        qFatal("QFontDatabase: Cannot find font directory %s - is Qt installed correctly?",
-               qPrintable(fontpath));
+        qWarning("QFontDatabase: Cannot find font directory '%s' - is Qt installed correctly?",
+                 qPrintable(QDir::toNativeSeparators(fontpath)));
+        return;
     }
 
     QDir dir(fontpath);