summaryrefslogtreecommitdiff
path: root/apps/onplay.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/onplay.c')
-rw-r--r--apps/onplay.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/onplay.c b/apps/onplay.c
index 8507699bd3..0bb3b6ae3c 100644
--- a/apps/onplay.c
+++ b/apps/onplay.c
@@ -588,12 +588,11 @@ static int add_to_playlist(void* arg)
588 588
589static bool view_playlist(void) 589static bool view_playlist(void)
590{ 590{
591 bool was_playing = audio_status() & AUDIO_STATUS_PLAY;
592 bool result; 591 bool result;
593 592
594 result = playlist_viewer_ex(selected_file); 593 result = playlist_viewer_ex(selected_file);
595 594
596 if (!was_playing && (audio_status() & AUDIO_STATUS_PLAY) && 595 if (result == PLAYLIST_VIEWER_OK &&
597 onplay_result == ONPLAY_OK) 596 onplay_result == ONPLAY_OK)
598 /* playlist was started from viewer */ 597 /* playlist was started from viewer */
599 onplay_result = ONPLAY_START_PLAY; 598 onplay_result = ONPLAY_START_PLAY;