Diffusion Krita 8a0b7cbe0607

Commit 97c03e0f3314dae5520deb901dda73d1cf8df201 was reverted by…

Authored by lvsouza on Jan 9 2020, 7:37 PM.

Description

Commit 97c03e0f3314dae5520deb901dda73d1cf8df201 was reverted by ef55574a4af75134a2a9be03fcd70e8b16aaf614 and then the crash happens again.

I have tested this change and it does not break PalleteDocker.

PS: KIS_ASSERT_RECOVER_RETURN_VALUE trigger an assert and krita
fails to start up. KisPaletteModel::index works if I use
KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE and change
KoColorSet::getGroup to return null pointer when its name
parameter is an empty string, but KisSwatchGroup::rowCount
crashes, so I think it is simpler to return an default
QModelIndex as soon as possible in KisPaletteModel::index

CCBUG:414890

Details