diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2004-05-29 10:23:21 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2004-05-29 10:23:21 +0200 |
commit | a4bdc1ada3e97eebc6ef28b6fa4d91ad9ae6ecbb (patch) | |
tree | 47fc6f39389284374206f8271b9e88aff49af315 /menu.c | |
parent | 1924da2cfec04735f92346f8f6fa5d5e325f5516 (diff) | |
download | vdr-a4bdc1ada3e97eebc6ef28b6fa4d91ad9ae6ecbb.tar.gz vdr-a4bdc1ada3e97eebc6ef28b6fa4d91ad9ae6ecbb.tar.bz2 |
Fixed removing the "scanning recordings..." message in case the video directory is empty
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.c 1.306 2004/05/23 11:21:06 kls Exp $ + * $Id: menu.c 1.307 2004/05/29 10:19:22 kls Exp $ */ #include "menu.h" @@ -1421,9 +1421,10 @@ cMenuRecordings::cMenuRecordings(const char *Base, int Level, bool OpenSubMenus) Display(); // this keeps the higher level menus from showing up briefly when pressing 'Back' during replay if (!Base) Skins.Message(mtStatus, tr("scanning recordings...")); - if (Base || Recordings.Load()) { - if (!Base) - Skins.Message(mtStatus, NULL); + bool Loaded = Base || Recordings.Load(); + if (!Base) + Skins.Message(mtStatus, NULL); + if (Loaded) { const char *LastReplayed = cReplayControl::LastReplayed(); cMenuRecordingItem *LastItem = NULL; char *LastItemText = NULL; |