summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2013-04-27 10:06:49 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2013-04-27 10:06:49 +0200
commitfd3bf6c3d2853505f0dddfd11ec408200ffb9e1c (patch)
treea17a6e672bb80febb5b9d729a543de4d771ff9cd /menu.c
parent53ef55410c7d5532151e9fba1ac5ab8eda553715 (diff)
downloadvdr-fd3bf6c3d2853505f0dddfd11ec408200ffb9e1c.tar.gz
vdr-fd3bf6c3d2853505f0dddfd11ec408200ffb9e1c.tar.bz2
Fixed multiple occurrences of the same directory in the recordings list in case there are directories that only differ in non-alphanumeric characters
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/menu.c b/menu.c
index 31d25d08..8c6d0d21 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.82 2013/03/18 09:11:48 kls Exp $
+ * $Id: menu.c 3.1 2013/04/25 12:51:24 kls Exp $
*/
#include "menu.h"
@@ -2302,14 +2302,12 @@ void cMenuRecordings::Set(bool Refresh)
}
else
delete Item;
- if (LastItem) {
+ if (LastItem || LastDir) {
if (CurrentRecording && strcmp(CurrentRecording, recording->FileName()) == 0)
- SetCurrent(LastItem);
+ SetCurrent(LastDir ? LastDir : LastItem);
}
- if (LastDir) {
+ if (LastDir)
LastDir->IncrementCounter(recording->IsNew());
- LastItem = LastDir;
- }
}
}
if (Refresh)