summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorAlessandro Portale <aportale@trolltech.com>2009-06-08 16:17:10 (GMT)
committerAlessandro Portale <aportale@trolltech.com>2009-06-08 17:30:14 (GMT)
commit806e0081bf8c77d990e4b0fafdec93f07bdcbfab (patch)
tree0e1ee8a123631a426c79c82ccc8805a30f2b7efd /src/gui
parent40e305dee4d93a445721cfec37d00cb7f4f3fc0e (diff)
downloadQt-806e0081bf8c77d990e4b0fafdec93f07bdcbfab.zip
Qt-806e0081bf8c77d990e4b0fafdec93f07bdcbfab.tar.gz
Qt-806e0081bf8c77d990e4b0fafdec93f07bdcbfab.tar.bz2
Attempt to load default skin only if it is present.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/styles/qs60style_simulated.cpp4
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, {