diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2020-11-03 22:12:38 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2020-11-03 22:12:38 +0100 |
commit | 0468b38ff3754bb195688fb2ec6314835e028125 (patch) | |
tree | 8f1a3147aacc37c76ec5f61949cbb7d6770b4fa2 /menu.c | |
parent | ebbc562aabf6f41a9314473ea6351b8fd6499c6e (diff) | |
download | vdr-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |