diff options
author | Armin Berres <armin.berres@basyskom.de> | 2010-06-24 10:31:51 +0200 |
---|---|---|
committer | Jörgen Scheibengruber <jorgen.scheibengruber@nokia.com> | 2010-06-29 16:27:23 +0300 |
commit | cb211302aab7595e693fea1bd59b632fb84721de (patch) | |
tree | 2db242bb35dccebf79bd80941fcd0f90b2d56458 | |
parent | 88ec0b257bd1edfe95dbe8b3daa16936495fe995 (diff) |
Changes: Themedaemon should not abort when theme ids changed
RevBy: Jörgen, Fabian
Changes:
When a theme id is changed the themedaemon cannot preload the
id anymore. Right now it is aborting in this case and one has to
manually clear the preload list. Instead of this unknown elements
are ignored and deleted from the preload list.
-rw-r--r-- | src/corelib/theme/mcommonpixmaps.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/corelib/theme/mcommonpixmaps.cpp b/src/corelib/theme/mcommonpixmaps.cpp index b2e9aa17..f77c9ce1 100644 --- a/src/corelib/theme/mcommonpixmaps.cpp +++ b/src/corelib/theme/mcommonpixmaps.cpp @@ -171,8 +171,11 @@ void MCommonPixmaps::loadOne() ImageResource *resource = daemon->findImageResource(id.imageId); if (resource) resource->fetchPixmap(id.size); - else - qFatal("MCommonPixmaps - Theme daemon could not find resource %s while loading most used pixmaps! Please re-install current theme or clear the preload.list file", qPrintable(id.imageId)); + else { + mWarning("MCommonPixmaps - Themedaemon could not find resource %s while loading most used pixmaps. Removing from list.", qPrintable(id.imageId)); + requestCounts.remove(id); + mostUsedPixmaps.remove(id); + } } else { // the cpu usage was too high, so start start the timer with longer delay |