summaryrefslogtreecommitdiff
path: root/recmenus.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2014-01-27 19:14:43 +0100
committerlouis <louis.braun@gmx.de>2014-01-27 19:14:43 +0100
commit26f46355f9fb20b3921d1188c7084dcaa2b838d4 (patch)
tree2a7ba8a2121a19803dff09dc45bd82e7752581da /recmenus.c
parent5eabb6e7c865a9beb172b8b9b9bde4857cabafce (diff)
downloadvdr-plugin-tvguide-26f46355f9fb20b3921d1188c7084dcaa2b838d4.tar.gz
vdr-plugin-tvguide-26f46355f9fb20b3921d1188c7084dcaa2b838d4.tar.bz2
fixed bug in diplaying list of search timers
Diffstat (limited to 'recmenus.c')
-rw-r--r--recmenus.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/recmenus.c b/recmenus.c
index 94df353..9a8fa41 100644
--- a/recmenus.c
+++ b/recmenus.c
@@ -654,10 +654,10 @@ cRecMenuSearchTimers::cRecMenuSearchTimers(std::vector<cTVGuideSearchTimer> sear
cRecMenuItemInfo *infoItem = new cRecMenuItemInfo(*headline, true);
infoItem->CalculateHeight(width - 2 * border);
SetHeader(infoItem);
- if (numSearchTimers > 0)
- SetMenuItems();
cRecMenuItem *button = new cRecMenuItemButton(tr("Close"), rmsClose, (!numSearchTimers)?true:false);
SetFooter(button);
+ if (numSearchTimers > 0)
+ SetMenuItems();
CalculateHeight();
CreatePixmap();
Arrange();
@@ -669,7 +669,8 @@ cRecMenuSearchTimers::~cRecMenuSearchTimers(void) {
void cRecMenuSearchTimers::SetMenuItems(void) {
for (int i = 0; i < numSearchTimers; i++) {
- AddMenuItemInitial(new cRecMenuItemSearchTimer(searchTimers[i], rmsSearchTimerEdit, rmsSearchTimerDeleteConfirm, rmsSearchTimerTest, (i==0)?true:false));
+ if (!AddMenuItemInitial(new cRecMenuItemSearchTimer(searchTimers[i], rmsSearchTimerEdit, rmsSearchTimerDeleteConfirm, rmsSearchTimerTest, (i==0)?true:false)))
+ break;
}
}