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/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 2f05d7c..f431331 100644 --- a/src/main.c +++ b/src/main.c @@ -137,7 +137,8 @@ static void BarMainGetInitialStation (BarApp_t *app) { } /* no autostart? ask the user */ if (app->curStation == NULL) { - app->curStation = BarUiSelectStation (app, app->ph.stations, "Select station: ", NULL); + app->curStation = BarUiSelectStation (app, app->ph.stations, + "Select station: ", NULL, app->settings.autoselect); } if (app->curStation != NULL) { BarUiPrintStation (&app->settings, app->curStation); -- cgit v1.2.3