diff options
| author | Alberto Mardegan <mardy@users.sourceforge.net> | 2020-02-29 19:08:44 +0300 |
|---|---|---|
| committer | Alberto Mardegan <mardy@users.sourceforge.net> | 2020-03-10 14:50:02 +0300 |
| commit | b26bfb18616e2a4baf33f9f1a2c147e3f5512de6 (patch) | |
| tree | 6094e51f0a87ad52199b6ded1500f4bc3165a97b /src/dialogs/qquickdialog.cpp | |
| parent | 59d15ec7f1dc19634f47d2aa6fa17f749fa54cd4 (diff) | |
TreeView: update currentIndex on model changes
The previous binding was not getting re-evaluated when the model was
being reset or when rows were been inserted or removed.
Here we use a counter variable, whose value change will force the
evaluation of the binding.
Fixes: QTBUG-53097
Change-Id: I76afebbda78ab477cf65631337a8bad51ca5428d
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/dialogs/qquickdialog.cpp')
0 files changed, 0 insertions, 0 deletions
