summaryrefslogtreecommitdiffstats
path: root/utils/themeeditor/graphics/rbscreen.cpp
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-08-13 19:14:54 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-08-13 19:14:54 +0000
commitdfc109ac65e54b3c783b6783a0371a988c8e2dd7 (patch)
tree7008fb3b956d5371e3f820b2e71090585a0e12ec /utils/themeeditor/graphics/rbscreen.cpp
parente60de9e5bb8059eefc0a5b6330738188850c5a4e (diff)
downloadrockbox-dfc109ac65e54b3c783b6783a0371a988c8e2dd7.tar.gz
rockbox-dfc109ac65e54b3c783b6783a0371a988c8e2dd7.zip
Theme Editor: Added warning messages for missing resources
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27803 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/graphics/rbscreen.cpp')
-rw-r--r--utils/themeeditor/graphics/rbscreen.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/themeeditor/graphics/rbscreen.cpp b/utils/themeeditor/graphics/rbscreen.cpp
index c66d4f82b2..b01552cc44 100644
--- a/utils/themeeditor/graphics/rbscreen.cpp
+++ b/utils/themeeditor/graphics/rbscreen.cpp
@@ -201,7 +201,11 @@ void RBScreen::setBackdrop(QString filename)
if(QFile::exists(filename))
backdrop = new QPixmap(filename);
else
+ {
+ RBScene* s = dynamic_cast<RBScene*>(scene());
+ s->addWarning(QObject::tr("Image not found: ") + filename);
backdrop = 0;
+ }
}
void RBScreen::makeCustomUI(QString id)