From 3072c5acdbb50f7571e5a72c8acb9146042968fb Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Tue, 20 Apr 2010 21:14:46 +0200 Subject: Don't stop playback when showing station list Original patch by jordanlewis@github. --- src/ui_act.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/ui_act.c b/src/ui_act.c index bb0769b..ba7dd1c 100644 --- a/src/ui_act.c +++ b/src/ui_act.c @@ -391,12 +391,14 @@ void BarUiActRenameStation (BAR_KS_ARGS) { /* play another station */ void BarUiActSelectStation (BAR_KS_ARGS) { - BarUiDoSkipSong (player); - PianoDestroyPlaylist (*curSong); - *curSong = NULL; - *curStation = BarUiSelectStation (ph, "Select station: ", curFd); - if (*curStation != NULL) { + PianoStation_t *newStation = BarUiSelectStation (ph, "Select station: ", + curFd); + if (newStation != NULL) { + *curStation = newStation; BarUiPrintStation ((*curStation)); + BarUiDoSkipSong (player); + PianoDestroyPlaylist (*curSong); + *curSong = NULL; } } -- cgit v1.2.3