https://bugs.kde.org/show_bug.cgi?id=453340
Tiar <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Latest Commit|https://invent.kde.org/grap |https://invent.kde.org/grap |hics/krita/commit/1efcf547f |hics/krita/commit/84fa30520 |30daf37e84fc017ce571493ccba |fabaf2a5a4435f3cecedbb2ecfd |2b39 |15c5 --- Comment #6 from Tiar <[email protected]> --- Git commit 84fa30520fabaf2a5a4435f3cecedbb2ecfd15c5 by Agata Cacko. Committed on 28/06/2022 at 11:35. Pushed by tymond into branch 'krita/5.1'. 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. (cherry picked from commit 1efcf547f30daf37e84fc017ce571493ccba2b39) M +17 -3 libs/resources/KisResourceModel.cpp https://invent.kde.org/graphics/krita/commit/84fa30520fabaf2a5a4435f3cecedbb2ecfd15c5 -- You are receiving this mail because: You are watching all bug changes.
