diff options
author | Mitch Curtis <[email protected]> | 2021-11-04 10:41:28 +0100 |
---|---|---|
committer | Mitch Curtis <[email protected]> | 2021-11-26 21:23:08 +0100 |
commit | 5d656b31eb371c9e0bb97c558f9193b08471f1d7 (patch) | |
tree | 0349bce0741278e3436454aea82dab5507947ef7 /src | |
parent | 716aa788188dc48aed0a24ed012976407cc9e800 (diff) |
Revert "Fix ListView.isCurrentItem when used with DelegateModel"
This reverts commit d9f9d773e92940786f159897623618f3bf6bcf0f.
It causes a heap-use-after-free in tst_swipeview.qml.
Task-number: QTBUG-97423
Pick-to: 5.15 6.1 6.2
Change-Id: I42e9831ae1399a010df28c39496a7778121f5e35
Reviewed-by: Jan Arve Sæther <[email protected]>
Reviewed-by: Oliver Eftevaag <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/quick/items/qquickitemview.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/quick/items/qquickitemview.cpp b/src/quick/items/qquickitemview.cpp index 9a7ed3f1b8..bd82fc14d3 100644 --- a/src/quick/items/qquickitemview.cpp +++ b/src/quick/items/qquickitemview.cpp @@ -2402,8 +2402,6 @@ void QQuickItemView::createdItem(int index, QObject* object) d->repositionPackageItemAt(item, index); else if (index == d->currentIndex) d->updateCurrent(index); - } else if (index == d->currentIndex) { - d->updateCurrent(index); } } |