From a0c06f4fb2ca89bf5eb81a694533cdb075d5a757 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Tue, 22 May 2012 08:28:04 +0200 Subject: [PATCH] Quick/QQuickFontLoader: Output warning on failure. Helps in case the 'file::' prefix is missing from local file URLs on Windows. 'C:\foo' is then interpreted as URL with protocol 'c', causing an error. Change-Id: I252ab453a7ce241f3bd290ef59d3106110146662 Reviewed-by: Matthew Vogt --- src/quick/util/qquickfontloader.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/quick/util/qquickfontloader.cpp b/src/quick/util/qquickfontloader.cpp index c121484..dfdad9e 100644 --- a/src/quick/util/qquickfontloader.cpp +++ b/src/quick/util/qquickfontloader.cpp @@ -120,6 +120,8 @@ void QQuickFontObject::replyFinished() else emit fontDownloaded(QString(), QQuickFontLoader::Error); } else { + qWarning("%s: Unable to load font '%s': %s", Q_FUNC_INFO, + qPrintable(reply->url().toString()), qPrintable(reply->errorString())); emit fontDownloaded(QString(), QQuickFontLoader::Error); } reply->deleteLater(); -- 2.7.4