Dont clear the playqueue when Cantata is passed a song as a commandline at start-up.
BUG: 375
This commit is contained in:
@@ -51,6 +51,8 @@
|
||||
This fixes seeking of FLAC files.
|
||||
10. Fix toggling of checkboxes via short-cut.
|
||||
11. Fix short-cuts in preferences dialog.
|
||||
12. Dont clear the playqueue when Cantata is passed a song as a commandline at
|
||||
start-up.
|
||||
|
||||
1.2.1
|
||||
-----
|
||||
|
||||
@@ -589,9 +589,10 @@ void PlayQueueModel::addItems(const QStringList &items, int row, bool replace, q
|
||||
|
||||
void PlayQueueModel::addFiles(const QStringList &filenames, int row, bool replace, quint8 priority)
|
||||
{
|
||||
//Check for empty playlist
|
||||
if (replace || songs.isEmpty()) {
|
||||
if (replace) {
|
||||
emit filesAdded(filenames, 0, 0, MPDConnection::AddReplaceAndPlay, priority);
|
||||
} else if (songs.isEmpty()) {
|
||||
emit filesAdded(filenames, 0, 0, MPDConnection::AddToEnd, priority);
|
||||
} else if (row < 0) {
|
||||
emit filesAdded(filenames, songs.size(), songs.size(), MPDConnection::AddToEnd, priority);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user