summaryrefslogtreecommitdiff
path: root/src/playlist_editor.cpp
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2013-04-06 19:01:27 +0200
committerAndrzej Rybczak <electricityispower@gmail.com>2013-04-07 13:22:50 +0200
commit6a3eb73a492946bd7079545f97894d3e8f174006 (patch)
tree7a61766ada6c97888800cb0fb2b78f923b9e903e /src/playlist_editor.cpp
parent153e8437745ada833681a799ab535dfd455b4a6f (diff)
rewrite communication system with mpd
Diffstat (limited to 'src/playlist_editor.cpp')
-rw-r--r--src/playlist_editor.cpp10
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);