summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2020-11-03 22:12:38 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2020-11-03 22:12:38 +0100
commit0468b38ff3754bb195688fb2ec6314835e028125 (patch)
tree8f1a3147aacc37c76ec5f61949cbb7d6770b4fa2 /menu.c
parentebbc562aabf6f41a9314473ea6351b8fd6499c6e (diff)
downloadvdr-0468b38ff3754bb195688fb2ec6314835e028125.tar.gz
vdr-0468b38ff3754bb195688fb2ec6314835e028125.tar.bz2
Fixed an unnecessary double call to Display() in cMenuRecording::RefreshRecording()
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/menu.c b/menu.c
index 901ec5a3..071d9292 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.85 2020/09/16 13:48:33 kls Exp $
+ * $Id: menu.c 4.86 2020/11/03 22:12:38 kls Exp $
*/
#include "menu.h"
@@ -2834,6 +2834,8 @@ cMenuRecording::cMenuRecording(const cRecording *Recording, bool WithButtons)
:cOsdMenu(tr("Recording info"))
{
SetMenuCategory(mcRecordingInfo);
+ if (cRecordings::GetRecordingsRead(recordingsStateKey)) // initializes recordingsStateKey, so we don't call Display() unnecessarily
+ recordingsStateKey.Remove();
recording = Recording;
originalFileName = recording->FileName();
withButtons = WithButtons;