summaryrefslogtreecommitdiff
path: root/src/ui_act.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2012-03-17 19:27:27 +0100
committerLars-Dominik Braun <lars@6xq.net>2012-03-17 19:27:27 +0100
commit7a02354513acad9e315b4f4f736b77a08de363a6 (patch)
tree86042261e9c1bba2d773f4817a3c862ce12f09c9 /src/ui_act.c
parente6a87e15043767c0f1f00a62110e4bbb53de4ece (diff)
downloadpianobar-windows-7a02354513acad9e315b4f4f736b77a08de363a6.tar.gz
pianobar-windows-7a02354513acad9e315b4f4f736b77a08de363a6.tar.bz2
pianobar-windows-7a02354513acad9e315b4f4f736b77a08de363a6.zip
Auto-select last remaining item of filtered list
See #231.
Diffstat (limited to 'src/ui_act.c')
-rw-r--r--src/ui_act.c9
1 files changed, 5 insertions, 4 deletions
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;