summaryrefslogtreecommitdiffstats
path: root/src/widget/wlibrarysidebar.cpp
diff options
context:
space:
mode:
authorRJ Ryan <rryan@mixxx.org>2014-01-29 01:40:48 -0500
committerRJ Ryan <rryan@mixxx.org>2014-02-13 23:31:31 -0500
commit3fa83e6f2d91ee63f40994c2c4171db09f04d983 (patch)
treee0810bb27026ed45d6caaac8ab64c78be31a9176 /src/widget/wlibrarysidebar.cpp
parent47970a144612700e9f1b31617f11c815c6b37cc7 (diff)
Handle creation of scoped bookmarks on drop of files in Mixxx.
* Clean up / unify processing of dropped URLs across all drop handlers. * Support dropping of playlists on the analysis, playlists, crate, autodj, and track table sections of the library (previously was only supported in playlists).
Diffstat (limited to 'src/widget/wlibrarysidebar.cpp')
-rw-r--r--src/widget/wlibrarysidebar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widget/wlibrarysidebar.cpp b/src/widget/wlibrarysidebar.cpp
index f650eb3462..4d1a0625d6 100644
--- a/src/widget/wlibrarysidebar.cpp
+++ b/src/widget/wlibrarysidebar.cpp
@@ -111,7 +111,6 @@ void WLibrarySidebar::timerEvent(QTimerEvent *event) {
// Drag-and-drop "drop" event. Occurs when something is dropped onto the track sources view
void WLibrarySidebar::dropEvent(QDropEvent * event) {
if (event->mimeData()->hasUrls()) {
- QList<QUrl> urls(event->mimeData()->urls());
// Drag and drop within this widget
if ((event->source() == this)
&& (event->possibleActions() & Qt::MoveAction)) {
@@ -127,6 +126,7 @@ void WLibrarySidebar::dropEvent(QDropEvent * event) {
QModelIndex destIndex = indexAt(event->pos());
// event->source() will return NULL if something is droped from
// a different application
+ QList<QUrl> urls(event->mimeData()->urls());
if (sidebarModel->dropAccept(destIndex, urls, event->source())) {
event->acceptProposedAction();
} else {