From: Friedemann Kleint Date: Mon, 2 Apr 2012 09:41:28 +0000 (+0200) Subject: Change fatal exit in QPlatformFontDatabase to a warning. X-Git-Tag: 071012110112~1881 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=565da6030fc2396d8d00baa65196cfc1f5d63f27;p=profile%2Fivi%2Fqtbase.git Change fatal exit in QPlatformFontDatabase to a warning. 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 Reviewed-by: Eskil Abrahamsen Blomfeldt --- diff --git a/src/gui/text/qplatformfontdatabase_qpa.cpp b/src/gui/text/qplatformfontdatabase_qpa.cpp index 6bd8284..6af0398 100644 --- a/src/gui/text/qplatformfontdatabase_qpa.cpp +++ b/src/gui/text/qplatformfontdatabase_qpa.cpp @@ -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);