After replacing play queue - dont emit error if fail plays, might be that playlist was not loaded...

This commit is contained in:
craig.p.drummond
2013-07-03 19:05:22 +00:00
parent 5a8a5d3f27
commit ce72f561bd

View File

@@ -550,7 +550,8 @@ void MPDConnection::add(const QStringList &files, quint32 pos, quint32 size, boo
if (sendCommand(send).ok) {
if (replace /*&& addedFile */&& !files.isEmpty()) {
startPlayingSong();
// Dont emit error if fail plays, might be that playlist was not loaded...
sendCommand("play "+QByteArray::number(0), false);
}
emit added(files);
}