Place playlist drop hint below placeholder item(s)
This commit is contained in:
parent
dae3fbbcfe
commit
4327068fc5
@ -91,7 +91,7 @@ class MainWindow(QtGui.QMainWindow):
|
|||||||
window = self.parent().parent().parent().parent()
|
window = self.parent().parent().parent().parent()
|
||||||
if urls and urls[0].scheme() == 'file':
|
if urls and urls[0].scheme() == 'file':
|
||||||
event.acceptProposedAction()
|
event.acceptProposedAction()
|
||||||
window.setPlaylistInsertPosition(window.playlist.count() if window.clearedPlaylistNote else 0)
|
window.setPlaylistInsertPosition(window.playlist.count())
|
||||||
else:
|
else:
|
||||||
super(MainWindow.PlaylistGroupBox, self).dragEnterEvent(event)
|
super(MainWindow.PlaylistGroupBox, self).dragEnterEvent(event)
|
||||||
|
|
||||||
@ -153,9 +153,7 @@ class MainWindow(QtGui.QMainWindow):
|
|||||||
event.acceptProposedAction()
|
event.acceptProposedAction()
|
||||||
indexRow = self.indexAt(event.pos()).row()
|
indexRow = self.indexAt(event.pos()).row()
|
||||||
window = self.parent().parent().parent().parent().parent()
|
window = self.parent().parent().parent().parent().parent()
|
||||||
if not window.clearedPlaylistNote:
|
if indexRow == -1 or not window.clearedPlaylistNote:
|
||||||
indexRow = 0
|
|
||||||
if indexRow == -1:
|
|
||||||
indexRow = window.playlist.count()
|
indexRow = window.playlist.count()
|
||||||
window.setPlaylistInsertPosition(indexRow)
|
window.setPlaylistInsertPosition(indexRow)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user