mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 15:01:48 +02:00
Compile again with VDR < 2.3.0
This commit is contained in:
parent
4474b5f5b5
commit
7ca598f64e
@ -145,12 +145,16 @@ void cEpgGrid::drawText() {
|
||||
drawIcon("Switch", theme.Color(clrButtonYellow));
|
||||
if (hasTimer) {
|
||||
const cTimer *timer = NULL;
|
||||
#if VDRVERSNUM >= 20301
|
||||
{
|
||||
LOCK_TIMERS_READ;
|
||||
timer = Timers->GetMatch(event);
|
||||
}
|
||||
#else
|
||||
timer = Timers.GetMatch(event);
|
||||
#endif
|
||||
if (timer)
|
||||
#ifdef USE_SWITCHONLY
|
||||
#ifdef SWITCHONLYPATCH
|
||||
if (timer->HasFlags(tfSwitchOnly))
|
||||
drawIcon("Switch", theme.Color(clrButtonYellow));
|
||||
else if (timer->HasFlags(tfActive))
|
||||
|
@ -764,10 +764,14 @@ eOSState cRecMenuManager::StateMachine(eRecMenuState nextState) {
|
||||
if (cRecMenuEditTimer *menu = dynamic_cast<cRecMenuEditTimer*>(activeMenu)) {
|
||||
timer = menu->GetOriginalTimer();
|
||||
} else break;
|
||||
#if VDRVERSNUM >= 20301
|
||||
{
|
||||
LOCK_TIMERS_WRITE;
|
||||
recManager->DeleteTimer(Timers->GetTimer(timer));
|
||||
}
|
||||
#else
|
||||
recManager->DeleteTimer(Timers.GetTimer(timer));
|
||||
#endif
|
||||
delete activeMenu;
|
||||
if (timerConflicts) {
|
||||
delete timerConflicts;
|
||||
|
Loading…
Reference in New Issue
Block a user