summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-11-18 13:12:31 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2012-11-18 13:12:31 +0100
commitd46a31d4178304841e66a2d8f2ecd983580561f3 (patch)
tree5dbe405146502e9388ffd1d51e3aa0b75ce0c4af /menu.c
parent3c65130e38154d9350df8d8827401f4d7fd6b28e (diff)
downloadvdr-d46a31d4178304841e66a2d8f2ecd983580561f3.tar.gz
vdr-d46a31d4178304841e66a2d8f2ecd983580561f3.tar.bz2
Modified editing marks are now written to disk whenever the replay progress display gets hidden1.7.32
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/menu.c b/menu.c
index 9ade0376..b5a0d250 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 2.64 2012/11/18 13:00:33 kls Exp $
+ * $Id: menu.c 2.65 2012/11/18 13:07:53 kls Exp $
*/
#include "menu.h"
@@ -4482,10 +4482,6 @@ cReplayControl::~cReplayControl()
Hide();
cStatus::MsgReplaying(this, NULL, fileName, false);
Stop();
- if (marksModified) {
- marks.Save();
- marksModified = false;
- }
if (currentReplayControl == this)
currentReplayControl = NULL;
}
@@ -4573,6 +4569,10 @@ void cReplayControl::Hide(void)
timeSearchActive = false;
timeoutShow = 0;
}
+ if (marksModified) {
+ marks.Save();
+ marksModified = false;
+ }
}
void cReplayControl::ShowMode(void)
@@ -4789,10 +4789,6 @@ void cReplayControl::EditCut(void)
{
if (*fileName) {
Hide();
- if (marksModified) {
- marks.Save();
- marksModified = false;
- }
if (!cCutter::Active()) {
if (!marks.Count())
Skins.Message(mtError, tr("No editing marks defined!"));