mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-21 23:43:58 +01:00
Drag & drop from the file list to the playlist
This commit is contained in:
parent
930fbaeac1
commit
0e2f542fcb
@ -90,7 +90,20 @@
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QListView" name="list"/>
|
||||
<widget class="QListView" name="list">
|
||||
<property name="dragEnabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="dragDropMode">
|
||||
<enum>QAbstractItemView::DragOnly</enum>
|
||||
</property>
|
||||
<property name="selectionMode">
|
||||
<enum>QAbstractItemView::ExtendedSelection</enum>
|
||||
</property>
|
||||
<property name="selectionBehavior">
|
||||
<enum>QAbstractItemView::SelectRows</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
|
@ -167,7 +167,7 @@ bool Playlist::dropMimeData(const QMimeData* data, Qt::DropAction action, int ro
|
||||
if (!song.is_valid())
|
||||
continue;
|
||||
|
||||
songs << songs;
|
||||
songs << song;
|
||||
}
|
||||
|
||||
InsertSongs(songs, row);
|
||||
|
Loading…
Reference in New Issue
Block a user