Skip to content
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.

Commit

Permalink
When loading URLs via commandline use AppendAndPlay.
Browse files Browse the repository at this point in the history
Closes #1413
  • Loading branch information
CDrummond committed Dec 3, 2018
1 parent 6e8faee commit 67cbf7b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
24. For MPD>=21, use its albumart protocol to fetch covers.
25. When copying tracks to a device, only update cache if configured to do so.
26. Fix MusicBrainz disc ID calculation.
27. When loading URLs via commandline use AppendAndPlay.

2.3.2
-----
Expand Down
2 changes: 1 addition & 1 deletion gui/mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public Q_SLOTS:
void mpdConnectionName(const QString &name);
void hideWindow();
void restoreWindow();
void load(const QStringList &urls) { PlayQueueModel::self()->load(urls); }
void load(const QStringList &urls) { PlayQueueModel::self()->load(urls, MPDConnection::AppendAndPlay); }
void showAboutDialog();
void mpdConnectionStateChanged(bool connected);
void playQueueItemsSelected(bool s);
Expand Down
2 changes: 1 addition & 1 deletion models/playqueuemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@ void PlayQueueModel::addFiles(const QStringList &filenames, int row, int action,
if (MPDConnection::ReplaceAndplay==action) {
emit filesAdded(filenames, 0, 0, MPDConnection::ReplaceAndplay, priority, decreasePriority);
} else if (songs.isEmpty()) {
emit filesAdded(filenames, 0, 0, MPDConnection::Append, priority, decreasePriority);
emit filesAdded(filenames, 0, 0, action, priority, decreasePriority);
} else if (row < 0) {
emit filesAdded(filenames, songs.size(), songs.size(), action, priority, decreasePriority);
} else {
Expand Down

0 comments on commit 67cbf7b

Please sign in to comment.