Place playlist drop hint below placeholder item(s)

This commit is contained in:
Et0h 2015-06-06 19:45:39 +01:00
parent dae3fbbcfe
commit 4327068fc5

View File

@ -91,7 +91,7 @@ class MainWindow(QtGui.QMainWindow):
window = self.parent().parent().parent().parent()
if urls and urls[0].scheme() == 'file':
event.acceptProposedAction()
window.setPlaylistInsertPosition(window.playlist.count() if window.clearedPlaylistNote else 0)
window.setPlaylistInsertPosition(window.playlist.count())
else:
super(MainWindow.PlaylistGroupBox, self).dragEnterEvent(event)
@ -153,9 +153,7 @@ class MainWindow(QtGui.QMainWindow):
event.acceptProposedAction()
indexRow = self.indexAt(event.pos()).row()
window = self.parent().parent().parent().parent().parent()
if not window.clearedPlaylistNote:
indexRow = 0
if indexRow == -1:
if indexRow == -1 or not window.clearedPlaylistNote:
indexRow = window.playlist.count()
window.setPlaylistInsertPosition(indexRow)
else: