diff options
author | Alessandro Portale <alessandro.portale@nokia.com> | 2011-01-19 17:49:34 (GMT) |
---|---|---|
committer | Alessandro Portale <alessandro.portale@nokia.com> | 2011-01-19 17:51:49 (GMT) |
commit | 25ac59fcf1bb03c9af9a2c967218c96c7c77361a (patch) | |
tree | 4a1055a3136454f7db327bdade3c06cb0da0da9e /src/gui/text | |
parent | a2ebd9e3f84fb8fcd2be45e91a7c71f146961e23 (diff) | |
download | Qt-25ac59fcf1bb03c9af9a2c967218c96c7c77361a.zip Qt-25ac59fcf1bb03c9af9a2c967218c96c7c77361a.tar.gz Qt-25ac59fcf1bb03c9af9a2c967218c96c7c77361a.tar.bz2 |
Do not load aplication fonts on Symbian^1 and below
read http://bugreports.qt.nokia.com/browse/QTBUG-16514 for
a recipy to reboot the phone just by handling with fonts.
Symbian^1 is vulnerable, and Symbain^3 prevents a phone reboot.
Therefore, I prefer to disable the app font feature for
Symbian^1, until QTBUG-16514 us properly handled.
Task-Number: QTBUG-16514
Diffstat (limited to 'src/gui/text')
-rw-r--r-- | src/gui/text/qfontdatabase_s60.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/text/qfontdatabase_s60.cpp b/src/gui/text/qfontdatabase_s60.cpp index e508810..06462c4 100644 --- a/src/gui/text/qfontdatabase_s60.cpp +++ b/src/gui/text/qfontdatabase_s60.cpp @@ -517,6 +517,9 @@ static inline void load(const QString &family = QString(), int script = -1) static void registerFont(QFontDatabasePrivate::ApplicationFont *fnt) { + if (QSysInfo::symbianVersion() <= QSysInfo::SV_SF_2) + return; // See QTBUG-16514 for what 'font collisions' can cause in Symbian^1 and lower + if (QSymbianFontDatabaseExtrasImplementation::appFontLimitReached()) return; |