https://bugs.kde.org/show_bug.cgi?id=453340
Tiar <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Latest Commit| |https://invent.kde.org/grap | |hics/krita/commit/1efcf547f | |30daf37e84fc017ce571493ccba | |2b39 Resolution|--- |FIXED --- Comment #5 from Tiar <[email protected]> --- Git commit 1efcf547f30daf37e84fc017ce571493ccba2b39 by Agata Cacko. Committed on 27/06/2022 at 19:29. Pushed by nalvarez into branch 'master'. Fix invalid indexes on external Remove in ResourceModel Before this commit, if the index was invalid, KisResourceModel would still try to use it to remove resources from the model. Considering that the index can be invalid in a correct state of Krita, when the resource has been deduplicated in SQL query so it doesn't appear in the model, this commit just ignores invalid indexes. Before this commit there was also always just one endRemoveRows() called despite that beginRemoveRows() could be called multiple times. Qt needs the endRemoveRows() to be called the same amount of times as beginRemoveRows(), so this commit makes sure that the amounts of calls for both functions match. M +17 -3 libs/resources/KisResourceModel.cpp https://invent.kde.org/graphics/krita/commit/1efcf547f30daf37e84fc017ce571493ccba2b39 -- You are receiving this mail because: You are watching all bug changes.
