From d3046d174245920c01f2e19fa43f2cccdba9540b Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Fri, 30 Jul 2010 17:45:36 +0200 Subject: Feature: Custom station sorting Sort stations by name and/or isquickmix. --- src/ui_act.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/ui_act.c') diff --git a/src/ui_act.c b/src/ui_act.c index ba7dd1c..7328e40 100644 --- a/src/ui_act.c +++ b/src/ui_act.c @@ -327,7 +327,8 @@ void BarUiActMoveSong (BAR_KS_ARGS) { RETURN_IF_NO_SONG; - reqData.to = BarUiSelectStation (ph, "Move song to station: ", curFd); + reqData.to = BarUiSelectStation (ph, "Move song to station: ", + settings->sortOrder, curFd); if (reqData.to != NULL) { /* find original station (just is case we're playing a quickmix * station) */ @@ -392,7 +393,7 @@ void BarUiActRenameStation (BAR_KS_ARGS) { */ void BarUiActSelectStation (BAR_KS_ARGS) { PianoStation_t *newStation = BarUiSelectStation (ph, "Select station: ", - curFd); + settings->sortOrder, curFd); if (newStation != NULL) { *curStation = newStation; BarUiPrintStation ((*curStation)); @@ -450,7 +451,8 @@ void BarUiActSelectQuickMix (BAR_KS_ARGS) { if ((*curStation)->isQuickMix) { PianoStation_t *selStation; while ((selStation = BarUiSelectStation (ph, - "Toggle quickmix for station: ", curFd)) != NULL) { + "Toggle quickmix for station: ", settings->sortOrder, + curFd)) != NULL) { selStation->useQuickMix = !selStation->useQuickMix; } BarUiMsg (MSG_INFO, "Setting quickmix stations... "); -- cgit v1.2.3