aboutsummaryrefslogtreecommitdiff
path: root/src/QueueCommands.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-07 11:33:00 +0100
committerMax Kellermann <max@duempel.org>2013-01-07 11:33:00 +0100
commit400ff1c81253d29b127834c0b5367e83bbb3430c (patch)
treed3660b68292829a6d1f76c4e32e26fef8bb53a19 /src/QueueCommands.cxx
parentd360f17a59fe6ed52ffa74c48c63164cf203d1e0 (diff)
DatabaseQueue: pass DatabaseSelection to Add...()
Diffstat (limited to 'src/QueueCommands.cxx')
-rw-r--r--src/QueueCommands.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/QueueCommands.cxx b/src/QueueCommands.cxx
index 58792fd1..7ef5bffa 100644
--- a/src/QueueCommands.cxx
+++ b/src/QueueCommands.cxx
@@ -22,6 +22,7 @@
#include "CommandError.hxx"
#include "DatabaseQueue.hxx"
#include "SongFilter.hxx"
+#include "DatabaseSelection.hxx"
#include "Playlist.hxx"
#include "PlaylistPrint.hxx"
#include "ClientFile.hxx"
@@ -69,9 +70,9 @@ handle_add(Client *client, G_GNUC_UNUSED int argc, char *argv[])
return print_playlist_result(client, result);
}
+ const DatabaseSelection selection(uri, true);
GError *error = NULL;
- return AddFromDatabase(client->partition,
- uri, nullptr, &error)
+ return AddFromDatabase(client->partition, selection, &error)
? COMMAND_RETURN_OK
: print_error(client, error);
}