summaryrefslogtreecommitdiff
path: root/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'setup.c')
-rw-r--r--setup.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/setup.c b/setup.c
index 9cef8b91..bc1af413 100644
--- a/setup.c
+++ b/setup.c
@@ -245,7 +245,11 @@ void cFlatSetupGeneral::Setup(void) {
if( SetupConfig->DecorIndex < 0 || SetupConfig->DecorIndex > DecorDescriptions.Size() )
SetupConfig->DecorIndex = 0;
- Add(new cMenuEditStraItem(tr("Decorfile"), &SetupConfig->DecorIndex, DecorDescriptions.Size(), &DecorDescriptions[0]));
+ if( DecorDescriptions.Size() == 0 ) {
+ esyslog("skinflatplus: no decor files found, please check your installation!");
+ Add(new cOsdItem(tr("no decorfiles found, check install"), osUnknown, false));
+ } else
+ Add(new cMenuEditStraItem(tr("Decorfile"), &SetupConfig->DecorIndex, DecorDescriptions.Size(), &DecorDescriptions[0]));
Add(new cMenuEditBoolItem(tr("Show empty color-buttons"), &SetupConfig->ButtonsShowEmpty));
Add(new cMenuEditBoolItem(tr("Show TopBar menu icons"), &SetupConfig->TopBarMenuIconShow));