summaryrefslogtreecommitdiffstats
path: root/apps/gui/statusbar-skinned.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-11-15 17:44:13 +0000
committerThomas Martitz <kugel@rockbox.org>2009-11-15 17:44:13 +0000
commitf80a6ddeae7f27ff14adeb80990a1eefe1ce6c90 (patch)
treeba1d87796324571224e97eac0f44993ae1c9079a /apps/gui/statusbar-skinned.c
parenta1bc3401f1c65524ded556f131283b8864ac3733 (diff)
downloadrockbox-f80a6ddeae7f27ff14adeb80990a1eefe1ce6c90.tar.gz
rockbox-f80a6ddeae7f27ff14adeb80990a1eefe1ce6c90.tar.bz2
rockbox-f80a6ddeae7f27ff14adeb80990a1eefe1ce6c90.zip
Fix crash when selecting statusbar: custom in the menus without having a valid sbs loaded.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23635 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/statusbar-skinned.c')
-rw-r--r--apps/gui/statusbar-skinned.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/gui/statusbar-skinned.c b/apps/gui/statusbar-skinned.c
index a3778ba175..d53f465116 100644
--- a/apps/gui/statusbar-skinned.c
+++ b/apps/gui/statusbar-skinned.c
@@ -135,7 +135,7 @@ void sb_skin_set_state(int state, enum screen_type screen)
{
sb_skin[screen].sync_data->do_full_update = true;
int skinbars = sb_skin[screen].sync_data->statusbars;
- if (state)
+ if (state && loaded_ok[screen])
{
skinbars |= VP_SB_ONSCREEN(screen);
}