summaryrefslogtreecommitdiff
path: root/setup.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2014-10-04 10:10:04 +0200
committerlouis <louis.braun@gmx.de>2014-10-04 10:10:04 +0200
commit688ad9698e5722403b390d6a792746d94677cc23 (patch)
treef32a4e3dce1d7867d7b0a3c946fd2db562ea2136 /setup.c
parentb177b37393c0ba8eea507e2d71ac20ee4b345622 (diff)
downloadvdr-plugin-skindesigner-688ad9698e5722403b390d6a792746d94677cc23.tar.gz
vdr-plugin-skindesigner-688ad9698e5722403b390d6a792746d94677cc23.tar.bz2
fixed a crash if no skindesigner skins are found and plugin setup menu is called from another skin
Diffstat (limited to 'setup.c')
-rw-r--r--setup.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/setup.c b/setup.c
index 0b85782..6809c99 100644
--- a/setup.c
+++ b/setup.c
@@ -19,6 +19,12 @@ void cSkinDesignerSetup::Setup(void) {
Add(new cMenuEditIntItem(tr("Number to cache initially (per size)"), &data.numLogosPerSizeInitial, 0, 1000));
Add(new cMenuEditIntItem(tr("Number to cache in maximum"), &data.numLogosMax, 0, 1000));
+ if (!imgCache) {
+ SetCurrent(Get(current));
+ Display();
+ return;
+ }
+
cString message = cString::sprintf("--------------------- %s ---------------------", tr("Cache Statistics"));
Add(new cOsdItem(*message));
cList<cOsdItem>::Last()->SetSelectable(false);