Print message only after song is not found in a current playlist

This commit is contained in:
Andrzej Rybczak
2017-03-12 19:58:58 +01:00
parent 468d13aac5
commit c3b996c0e8

View File

@@ -522,10 +522,10 @@ void PlaylistEditor::locateSong(const MPD::Song &s)
return false;
};
Statusbar::print("Jumping to song...");
if (locate_song_in_current_playlist(Content.currentV() + 1, Content.endV()))
return;
Statusbar::print("Jumping to song...");
if (locate_song_in_playlists(Playlists.currentV() + 1, Playlists.endV()))
return;
if (locate_song_in_playlists(Playlists.beginV(), Playlists.currentV()))