From b0943c28c2a4981dd6bdb7bed69360da06720406 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Tue, 6 Oct 2009 11:11:59 +0200 Subject: [PATCH] fix adding songs to playlist (broken by d82498ea) --- src/mpdpp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mpdpp.cpp b/src/mpdpp.cpp index a58b4fd2..e3f5620c 100644 --- a/src/mpdpp.cpp +++ b/src/mpdpp.cpp @@ -411,7 +411,7 @@ void Connection::SetCrossfade(unsigned crossfade) const int Connection::AddSong(const std::string &path) { - if (itsConnection) + if (!itsConnection) return -1; int id = -1; if (GetPlaylistLength() < itsMaxPlaylistLength)