diff options
author | Alessandro Portale <aportale@trolltech.com> | 2009-06-08 16:17:10 (GMT) |
---|---|---|
committer | Alessandro Portale <aportale@trolltech.com> | 2009-06-08 17:30:14 (GMT) |
commit | 806e0081bf8c77d990e4b0fafdec93f07bdcbfab (patch) | |
tree | 0e1ee8a123631a426c79c82ccc8805a30f2b7efd /src | |
parent | 40e305dee4d93a445721cfec37d00cb7f4f3fc0e (diff) | |
download | Qt-806e0081bf8c77d990e4b0fafdec93f07bdcbfab.zip Qt-806e0081bf8c77d990e4b0fafdec93f07bdcbfab.tar.gz Qt-806e0081bf8c77d990e4b0fafdec93f07bdcbfab.tar.bz2 |
Attempt to load default skin only if it is present.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/styles/qs60style_simulated.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/styles/qs60style_simulated.cpp b/src/gui/styles/qs60style_simulated.cpp index a94d73e..7667f92 100644 --- a/src/gui/styles/qs60style_simulated.cpp +++ b/src/gui/styles/qs60style_simulated.cpp @@ -359,7 +359,9 @@ QS60Style::QS60Style() : QCommonStyle(*new QS60StylePrivate) { // Assume, that the resource system has a ':/s60Stylethemes/Default.blob' - loadS60ThemeFromBlob(QString::fromLatin1(":/s60Stylethemes/Default.blob")); + const QString defaultBlob = QString::fromLatin1(":/s60Stylethemes/Default.blob"); + if (QFile::exists(defaultBlob)) + loadS60ThemeFromBlob(defaultBlob); } Q_GLOBAL_STATIC_WITH_INITIALIZER(QStringList, enumPartKeys, { |