diff options
author | Martin Schirrmacher <vdr.zaphistory@schirrmacher.eu> | 2015-12-09 20:09:19 +0100 |
---|---|---|
committer | Martin Schirrmacher <vdr.zaphistory@schirrmacher.eu> | 2015-12-09 20:09:19 +0100 |
commit | 484b48a61c841a72c12c3a347bbafd0b96826da3 (patch) | |
tree | 09d1e1825125d11d33529e275552563795d049e8 /setup-zaphistory.c | |
parent | 111b0cc69414d8025a66b3325a65d7286be87df7 (diff) | |
download | vdr-plugin-zaphistory-master.tar.gz vdr-plugin-zaphistory-master.tar.bz2 |
Diffstat (limited to 'setup-zaphistory.c')
-rw-r--r-- | setup-zaphistory.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/setup-zaphistory.c b/setup-zaphistory.c index 93ba52e..b34c3f8 100644 --- a/setup-zaphistory.c +++ b/setup-zaphistory.c @@ -73,7 +73,12 @@ cMenuSetupZapHistory::cMenuSetupZapHistory(void) // add menu items SetSection(tr("Zaphistory")); +#if APIVERSNUM >= 20301 + LOCK_CHANNELS_READ; + Add(new cMenuEditIntItem(tr("Number of entries"), &ZapHistorySetup.EntryCount, 0, Channels->Count() )); +#else Add(new cMenuEditIntItem(tr("Number of entries"), &ZapHistorySetup.EntryCount, 0, Channels.Count() )); +#endif Add(new cMenuEditBoolItem(tr("Hide mainmenu entry"), &ZapHistorySetup.HideMainMenu)); Add(new cMenuEditStraItem(tr("Default view"), &ZapHistorySetup.DummyDefaultView, 2, viewStrs)); Add(new cMenuEditStraItem(tr("Default sort"), &ZapHistorySetup.DummyDefaultSort, 3, sortStrs)); |