fixed a crash if no skindesigner skins are found and plugin setup menu is called from another skin

This commit is contained in:
louis 2014-10-04 10:10:04 +02:00
parent b177b37393
commit 688ad9698e
3 changed files with 10 additions and 0 deletions

View File

@ -12,3 +12,4 @@ Version 0.0.2
- added common channel logo path for all skins
- changed skin handling so that every skin is directly shown in VDR OSD Menu
- added Theme support, each skin can now have various themes
- fixed a crash if no skindesigner skins are found and plugin setup menu is called from another skin

View File

@ -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);

View File

@ -112,6 +112,9 @@ bool cPluginSkinDesigner::Start(void) {
newSkin->ActivateBackupSkin();
}
}
if (skins.size() == 0) {
esyslog("skindesigner: no skins found! Using default Skin LCARS!");
}
return true;
}