summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2018-01-29 14:09:59 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2018-01-29 14:09:59 +0100
commit5ae8d1a7a30139d714334ecbed81b936885f75ce (patch)
treec83fd869470b7993713f64fe9691392f36ff41cb /menu.c
parent0055eeeeb8df2b4e0c6f90338529200a0b3dfa22 (diff)
downloadvdr-5ae8d1a7a30139d714334ecbed81b936885f75ce.tar.gz
vdr-5ae8d1a7a30139d714334ecbed81b936885f75ce.tar.bz2
Implemented cStatus::MarksModified()
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/menu.c b/menu.c
index 4f2b4381..bbaa0bab 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 4.55 2018/01/26 14:34:31 kls Exp $
+ * $Id: menu.c 4.56 2018/01/29 13:59:58 kls Exp $
*/
#include "menu.h"
@@ -2694,8 +2694,15 @@ eOSState cMenuRecordingEdit::RemoveName(void)
eOSState cMenuRecordingEdit::DeleteMarks(void)
{
if (buttonDeleteMarks && Interface->Confirm(tr("Delete editing marks for this recording?"))) {
- if (cMarks::DeleteMarksFile(recording))
+ if (cMarks::DeleteMarksFile(recording)) {
SetHelpKeys();
+ if (cControl *Control = cControl::Control(true)) {
+ if (const cRecording *Recording = Control->GetRecording()) {
+ if (strcmp(recording->FileName(), Recording->FileName()) == 0)
+ cStatus::MsgMarksModified(NULL);
+ }
+ }
+ }
else
Skins.Message(mtError, tr("Error while deleting editing marks!"));
}
@@ -5811,6 +5818,7 @@ void cReplayControl::MarkToggle(void)
StateKey.Remove();
ShowTimed(2);
marksModified = true;
+ cStatus::MsgMarksModified(&marks);
}
}
@@ -5870,6 +5878,7 @@ void cReplayControl::MarkMove(int Frames, bool MarkRequired)
m->SetPosition(p);
Goto(m->Position(), true);
marksModified = true;
+ cStatus::MsgMarksModified(&marks);
}
else if (!MarkRequired)
Goto(SkipFrames(Frames), !Play);