Summary: | QAbstractItemModel::endInsertColumns: Invalid index | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | grum999 |
Component: | Animation | Assignee: | Emmet O'Neill <emmetoneill.pdx> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alvin, dimula73, emmetoneill.pdx |
Priority: | NOR | Keywords: | regression, release_blocker |
Version: | 5.2.0-beta2 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/graphics/krita/-/commit/de673feee8f20079e54b51f7799d48e267703035 | Version Fixed In: | |
Sentry Crash Report: |
Description
grum999
2023-08-17 17:40:58 UTC
Opening an animation file with 75 frames (0 to 74) generate a different message :) ``` QAbstractItemModel::endInsertColumns: Invalid index ( 1 , 75 ) in model KisAnimTimelineFramesModel(0x55f8e4ef8380) ``` Yep, you're right. I'm not sure why this is happening yet, but it'll be on my list of things to look into next week. Thanks for the report as always grum! *** Bug 473282 has been marked as a duplicate of this bug. *** Ah thanks! Didn't saw the bug 473282 as I didn't searched in resolved... :-/ Git commit 2157e5c8a4d36c13f7b69be739f136639faeb2ca by Dmitry Kazakov. Committed on 23/08/2023 at 11:24. Pushed by dkazakov into branch 'master'. Fix a model warning in KisTimeBasedItemModel There were two issues: 1) KisTimeBasedItemModel::columnCount() could return the value that has already changed in the image without calling to begin/endInsertColumns. That is not really welcome by Qt. 2) In KisTimeBasedItemModel::setImage() we reset the model (and therefore updated its columns list), but didn't update m_d->numFramesOverride, which caused double insertion of the columns in slotPlaybackRangeChanged() a bit later. M +2 -1 plugins/dockers/animation/KisTimeBasedItemModel.cpp https://invent.kde.org/graphics/krita/-/commit/2157e5c8a4d36c13f7b69be739f136639faeb2ca Git commit de673feee8f20079e54b51f7799d48e267703035 by Dmitry Kazakov. Committed on 23/08/2023 at 11:26. Pushed by dkazakov into branch 'krita/5.2'. Fix a model warning in KisTimeBasedItemModel There were two issues: 1) KisTimeBasedItemModel::columnCount() could return the value that has already changed in the image without calling to begin/endInsertColumns. That is not really welcome by Qt. 2) In KisTimeBasedItemModel::setImage() we reset the model (and therefore updated its columns list), but didn't update m_d->numFramesOverride, which caused double insertion of the columns in slotPlaybackRangeChanged() a bit later. M +2 -1 plugins/dockers/animation/KisTimeBasedItemModel.cpp https://invent.kde.org/graphics/krita/-/commit/de673feee8f20079e54b51f7799d48e267703035 |