diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2012-03-17 19:27:27 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2012-03-17 19:27:27 +0100 |
commit | 7a02354513acad9e315b4f4f736b77a08de363a6 (patch) | |
tree | 86042261e9c1bba2d773f4817a3c862ce12f09c9 /src/main.c | |
parent | e6a87e15043767c0f1f00a62110e4bbb53de4ece (diff) | |
download | pianobar-7a02354513acad9e315b4f4f736b77a08de363a6.tar.gz pianobar-7a02354513acad9e315b4f4f736b77a08de363a6.tar.bz2 pianobar-7a02354513acad9e315b4f4f736b77a08de363a6.zip |
Auto-select last remaining item of filtered list
See #231.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |