mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed indentation
This commit is contained in:
parent
95947a29d5
commit
699c073d85
50
menu.c
50
menu.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: menu.c 4.37 2017/06/10 19:19:51 kls Exp $
|
* $Id: menu.c 4.38 2017/06/20 15:02:39 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
@ -1652,30 +1652,30 @@ eOSState cMenuWhatsOn::Switch(void)
|
|||||||
eOSState cMenuWhatsOn::Record(void)
|
eOSState cMenuWhatsOn::Record(void)
|
||||||
{
|
{
|
||||||
if (cMenuScheduleItem *item = (cMenuScheduleItem *)Get(Current())) {
|
if (cMenuScheduleItem *item = (cMenuScheduleItem *)Get(Current())) {
|
||||||
LOCK_TIMERS_WRITE;
|
LOCK_TIMERS_WRITE;
|
||||||
LOCK_CHANNELS_READ;
|
LOCK_CHANNELS_READ;
|
||||||
LOCK_SCHEDULES_READ;
|
LOCK_SCHEDULES_READ;
|
||||||
Timers->SetExplicitModify();
|
Timers->SetExplicitModify();
|
||||||
if (item->timerMatch == tmFull) {
|
if (item->timerMatch == tmFull) {
|
||||||
if (cTimer *Timer = Timers->GetMatch(item->event))
|
if (cTimer *Timer = Timers->GetMatch(item->event))
|
||||||
return AddSubMenu(new cMenuEditTimer(Timer));
|
return AddSubMenu(new cMenuEditTimer(Timer));
|
||||||
}
|
}
|
||||||
cTimer *Timer = new cTimer(item->event);
|
cTimer *Timer = new cTimer(item->event);
|
||||||
if (Setup.SVDRPPeering && *Setup.SVDRPDefaultHost)
|
if (Setup.SVDRPPeering && *Setup.SVDRPDefaultHost)
|
||||||
Timer->SetRemote(Setup.SVDRPDefaultHost);
|
Timer->SetRemote(Setup.SVDRPDefaultHost);
|
||||||
if (cTimer *t = Timers->GetTimer(Timer)) {
|
if (cTimer *t = Timers->GetTimer(Timer)) {
|
||||||
delete Timer;
|
delete Timer;
|
||||||
Timer = t;
|
Timer = t;
|
||||||
return AddSubMenu(new cMenuEditTimer(Timer));
|
return AddSubMenu(new cMenuEditTimer(Timer));
|
||||||
}
|
}
|
||||||
if (Timer->Matches(0, false, NEWTIMERLIMIT))
|
if (Timer->Matches(0, false, NEWTIMERLIMIT))
|
||||||
return AddSubMenu(new cMenuEditTimer(Timer, true));
|
return AddSubMenu(new cMenuEditTimer(Timer, true));
|
||||||
Timers->Add(Timer);
|
Timers->Add(Timer);
|
||||||
Timers->SetModified();
|
Timers->SetModified();
|
||||||
if (!HandleRemoteModifications(Timer)) {
|
if (!HandleRemoteModifications(Timer)) {
|
||||||
// must add the timer before HandleRemoteModifications to get proper log messages with timer ids
|
// must add the timer before HandleRemoteModifications to get proper log messages with timer ids
|
||||||
Timers->Del(Timer);
|
Timers->Del(Timer);
|
||||||
}
|
}
|
||||||
if (HasSubMenu())
|
if (HasSubMenu())
|
||||||
CloseSubMenu();
|
CloseSubMenu();
|
||||||
if (Update())
|
if (Update())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user