diff options
author | louis <louis.braun@gmx.de> | 2014-10-04 10:10:04 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2014-10-04 10:10:04 +0200 |
commit | 688ad9698e5722403b390d6a792746d94677cc23 (patch) | |
tree | f32a4e3dce1d7867d7b0a3c946fd2db562ea2136 /setup.c | |
parent | b177b37393c0ba8eea507e2d71ac20ee4b345622 (diff) | |
download | vdr-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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); |