Set parent parameter on playlist view creation because not setting it can sometimes cause bugs.

This commit is contained in:
The Wobbler 2025-03-03 15:02:14 +01:00
parent 829dc05c49
commit 5f20c6e5b0

View file

@ -86,7 +86,7 @@ class Library:
for library_widget in self.library_widgets:
playlist_tabs: QTabWidget = library_widget.playlist_tabs
playlist_view = PlaylistView(playlist, library_widget)
playlist_view = PlaylistView(playlist, library_widget, playlist_tabs)
playlist_view.setDragDropMode(QAbstractItemView.DragDropMode.InternalMove) # enable drag n drop
playlist_tabs.addTab(playlist_view, playlist.title)