From 7a02354513acad9e315b4f4f736b77a08de363a6 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sat, 17 Mar 2012 19:27:27 +0100 Subject: Auto-select last remaining item of filtered list See #231. --- src/ui_act.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/ui_act.c') diff --git a/src/ui_act.c b/src/ui_act.c index df6cb73..2cc559f 100644 --- a/src/ui_act.c +++ b/src/ui_act.c @@ -316,7 +316,7 @@ BarUiActCallback(BarUiActMoveSong) { reqData.step = 0; reqData.to = BarUiSelectStation (app, app->ph.stations, - "Move song to station: ", NULL); + "Move song to station: ", NULL, false); if (reqData.to != NULL) { /* find original station (just is case we're playing a quickmix * station) */ @@ -379,7 +379,7 @@ BarUiActCallback(BarUiActRenameStation) { */ BarUiActCallback(BarUiActSelectStation) { PianoStation_t *newStation = BarUiSelectStation (app, app->ph.stations, - "Select station: ", NULL); + "Select station: ", NULL, app->settings.autoselect); if (newStation != NULL) { app->curStation = newStation; BarUiPrintStation (&app->settings, app->curStation); @@ -475,7 +475,7 @@ BarUiActCallback(BarUiActSelectQuickMix) { PianoStation_t *toggleStation; while ((toggleStation = BarUiSelectStation (app, app->ph.stations, "Toggle quickmix for station: ", - BarUiActQuickmixCallback)) != NULL) { + BarUiActQuickmixCallback, false)) != NULL) { toggleStation->useQuickMix = !toggleStation->useQuickMix; } BarUiMsg (&app->settings, MSG_INFO, "Setting quickmix stations... "); @@ -660,7 +660,8 @@ BarUiActCallback(BarUiActManageStation) { } } else if (selectBuf[0] == 't') { PianoStation_t *station = BarUiSelectStation (app, - reqData.info.stationSeeds, "Delete seed station: ", NULL); + reqData.info.stationSeeds, "Delete seed station: ", NULL, + false); if (station != NULL) { PianoRequestDataDeleteSeed_t subReqData; -- cgit v1.2.3