From c3aa885a0f8496b1eb2f540d01225a538e523f6f Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Fri, 22 Nov 2024 17:04:42 +0100 Subject: [PATCH] SmartPlaylistSearchPreview: Remove early SetItemDelegates It's called too early before MoodbarLoader is set, Init() already calls SetItemDelegates. Fixes #1609 --- src/smartplaylists/smartplaylistsearchpreview.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/smartplaylists/smartplaylistsearchpreview.cpp b/src/smartplaylists/smartplaylistsearchpreview.cpp index 48e788ea3b..4d1620f09f 100644 --- a/src/smartplaylists/smartplaylistsearchpreview.cpp +++ b/src/smartplaylists/smartplaylistsearchpreview.cpp @@ -75,7 +75,6 @@ void SmartPlaylistSearchPreview::Init(const SharedPtr player, model_ = new Playlist(nullptr, nullptr, nullptr, collection_backend_, nullptr, -1, QString(), false, this); ui_->tree->setModel(model_); ui_->tree->SetPlaylist(model_); - ui_->tree->SetItemDelegates(); ui_->tree->Init(player, playlist_manager,