summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2013-03-04 14:11:47 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2013-03-04 14:11:47 +0100
commitdb8cf38b5b39a611ca35bebb8d657167a4573b20 (patch)
tree00851db76e2c2d26b18d206aa7ff74aa78350251 /menu.c
parentf3eb300bb017c18c15cc0d08752edf0fba3a96c5 (diff)
downloadvdr-db8cf38b5b39a611ca35bebb8d657167a4573b20.tar.gz
vdr-db8cf38b5b39a611ca35bebb8d657167a4573b20.tar.bz2
Implemented the setup option "OSD/Always sort folders first"
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/menu.c b/menu.c
index 4db68ec7..77326972 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.80 2013/02/19 09:33:26 kls Exp $
+ * $Id: menu.c 2.81 2013/03/04 14:11:47 kls Exp $
*/
#include "menu.h"
@@ -2608,6 +2608,7 @@ void cMenuSetupOSD::Set(void)
Add(new cMenuEditBoolItem(tr("Setup.OSD$Menu key closes"), &data.MenuKeyCloses));
Add(new cMenuEditBoolItem(tr("Setup.OSD$Recording directories"), &data.RecordingDirs));
Add(new cMenuEditBoolItem(tr("Setup.OSD$Folders in timer menu"), &data.FoldersInTimerMenu));
+ Add(new cMenuEditBoolItem(tr("Setup.OSD$Always sort folders first"), &data.AlwaysSortFoldersFirst));
Add(new cMenuEditBoolItem(tr("Setup.OSD$Number keys for characters"), &data.NumberKeysForChars));
Add(new cMenuEditStraItem(tr("Setup.OSD$Color key 0"), &data.ColorKey0, 4, keyColorTexts));
Add(new cMenuEditStraItem(tr("Setup.OSD$Color key 1"), &data.ColorKey1, 4, keyColorTexts));
@@ -2649,6 +2650,8 @@ eOSState cMenuSetupOSD::ProcessKey(eKeys Key)
ModifiedAppearance = true;
if (strcmp(data.FontFix, Setup.FontFix) || !DoubleEqual(data.FontFixSizeP, Setup.FontFixSizeP))
ModifiedAppearance = true;
+ if (data.AlwaysSortFoldersFirst != Setup.AlwaysSortFoldersFirst)
+ Recordings.ClearSortNames();
}
int oldSkinIndex = skinIndex;