fix adding songs to playlist (broken by d82498ea)

This commit is contained in:
Andrzej Rybczak
2009-10-06 11:11:59 +02:00
parent c8c5aa079e
commit b0943c28c2

View File

@@ -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)