QAbstractItemView: Don't change selection if editor ate release event
If a QItemDelegate implementation eats a release event (which they don't do by default), then don't change the selection. Task-number: QTBUG-59888 Change-Id: Ia08637627ce1da34ff9bdac63dfc72e5f53befac Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
parent
ab52b176f4
commit
0ebe5c9ef6
@ -1937,7 +1937,8 @@ void QAbstractItemView::mouseReleaseEvent(QMouseEvent *event)
|
||||
|
||||
if (d->selectionModel && d->noSelectionOnMousePress) {
|
||||
d->noSelectionOnMousePress = false;
|
||||
d->selectionModel->select(index, selectionCommand(index, event));
|
||||
if (!edited)
|
||||
d->selectionModel->select(index, selectionCommand(index, event));
|
||||
}
|
||||
|
||||
setState(NoState);
|
||||
|
Loading…
x
Reference in New Issue
Block a user