Skip to content

Commit

Permalink
qml: fix dropping into playlist button no longer functional regression
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzun authored and robUx4 committed Aug 16, 2024
1 parent 6920469 commit d0d9689
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/gui/qt/maininterface/qml/BannerSources.qml
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,10 @@ T.ToolBar {
}

onDropped: (drop) => {
if (plListView)
plListView.acceptDrop(plListView.model.count, drop)
if (plListView) {
console.assert(plListView.acceptDropFunc)
plListView.acceptDropFunc(plListView.model.count, drop)
}
}

Timer {
Expand Down
2 changes: 2 additions & 0 deletions modules/gui/qt/playlist/qml/PlaylistListView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ T.Pane {

property alias dragItem: dragItem

property alias acceptDropFunc: listView.acceptDropFunc

implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
contentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
Expand Down

0 comments on commit d0d9689

Please sign in to comment.