Diffusion Krita 2b88b62b4d2d

Fix reselecting item after resetting the model

Authored by tymond on Jan 31 2020, 10:07 PM.

Description

Fix reselecting item after resetting the model

Before this commit, the last chosen item would not get selected
after change in the model (for example using Assign to tag... option
in the context menu). This commit fixes that behaviour by adding emiting
signal beforeLayoutResetModel before resetting the model, so the index
can be saved and later used for the view.
The model index that is being sent is always empty since the model
doesn't know which index should get selected after the reset.
ItemChooser decides to save the current index instead.

Details

Committed
tymondFeb 7 2020, 3:15 PM
Parents
R37:fe75a9c22c64: Fix tag being present in Remove from tag list
Branches
Unknown
Tags
Unknown