diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2013-04-06 19:01:27 +0200 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2013-04-07 13:22:50 +0200 |
commit | 6a3eb73a492946bd7079545f97894d3e8f174006 (patch) | |
tree | 7a61766ada6c97888800cb0fb2b78f923b9e903e /src/playlist_editor.cpp | |
parent | 153e8437745ada833681a799ab535dfd455b4a6f (diff) |
rewrite communication system with mpd
Diffstat (limited to 'src/playlist_editor.cpp')
-rw-r--r-- | src/playlist_editor.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/playlist_editor.cpp b/src/playlist_editor.cpp index 58264414..0a8bb5c2 100644 --- a/src/playlist_editor.cpp +++ b/src/playlist_editor.cpp @@ -221,12 +221,10 @@ void PlaylistEditor::AddToPlaylist(bool add_n_play) if (isActiveWindow(Playlists) && !Playlists.empty()) { - if (Mpd.LoadPlaylist(Playlists.current().value())) - { - Statusbar::msg("Playlist \"%s\" loaded", Playlists.current().value().c_str()); - if (add_n_play) - myPlaylist->PlayNewlyAddedSongs(); - } + Mpd.LoadPlaylist(Playlists.current().value()); + Statusbar::msg("Playlist \"%s\" loaded", Playlists.current().value().c_str()); + if (add_n_play) + myPlaylist->PlayNewlyAddedSongs(); } else if (isActiveWindow(Content) && !Content.empty()) addSongToPlaylist(Content.current().value(), add_n_play); |