summaryrefslogtreecommitdiff
path: root/src/playlist_editor.cpp
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2014-01-18 16:44:39 +0100
committerAndrzej Rybczak <electricityispower@gmail.com>2014-01-18 17:01:16 +0100
commit34923a035c51eeec3cd28909aa06c29c637799d5 (patch)
tree97277feaaed8a4987f285d3be8a7ba562129aa07 /src/playlist_editor.cpp
parent7094852c20b8557813b264f051dc1e5842301715 (diff)
notify user if some files failed to be added
Diffstat (limited to 'src/playlist_editor.cpp')
-rw-r--r--src/playlist_editor.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/playlist_editor.cpp b/src/playlist_editor.cpp
index d82b6a1d..4394eefa 100644
--- a/src/playlist_editor.cpp
+++ b/src/playlist_editor.cpp
@@ -220,10 +220,13 @@ void PlaylistEditor::AddToPlaylist(bool add_n_play)
if (isActiveWindow(Playlists) && !Playlists.empty())
{
+ bool success;
withUnfilteredMenu(Content, [&]() {
- addSongsToPlaylist(Content.beginV(), Content.endV(), add_n_play, -1);
+ success = addSongsToPlaylist(Content.beginV(), Content.endV(), add_n_play, -1);
});
- Statusbar::msg("Playlist \"%s\" loaded", Playlists.current().value().c_str());
+ Statusbar::msg("Playlist \"%s\" loaded%s",
+ Playlists.current().value().c_str(), withErrors(success)
+ );
}
else if (isActiveWindow(Content) && !Content.empty())
addSongToPlaylist(Content.current().value(), add_n_play);