[prev in list] [next in list] [prev in thread] [next in thread]
List: amarok-bugs-dist
Subject: [amarok] [Bug 444408] Crash when searching collection [CollectionTreeItem::row]
From: "Tuomas Nurmi" <bugzilla_noreply () kde ! org>
Date: 2022-12-24 11:33:08
Message-ID: bug-444408-71684-YQx4TtM6jg () http ! bugs ! kde ! org/
[Download RAW message or body]
https://bugs.kde.org/show_bug.cgi?id=444408
--- Comment #3 from Tuomas Nurmi <tuomas@norsumanageri.org> ---
Seems to happen at least when filtered results are found under both various
artists and under single artists.
Reading docs ( https://doc.qt.io/qt-5/qmodelindex.html ),
"If you need to keep a model index over time use a QPersistentModelIndex."
is probably relevant here. I didn't do too deep analysis on the paths leading
here, but the crash is caused when the static_cast at row 444 of
CollectionTreeItemModelBase.cpp
is erroneous (parent.internalPointer() seems to be a non-QObject). So something
causes
a data-changing change when both kinds of results are in the filtering.
Seems to be fixed by having a QPersistentModelIndex instead.
A fix is submitted at
https://invent.kde.org/multimedia/amarok/-/merge_requests/50
--
You are receiving this mail because:
You are the assignee for the bug.=
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic