itemviews: Fix a condition typo
'QAbstractItemView::NoSelection' named constant with the value of 0 was used in the bitwise operation Task-number: QTBUG-71156 Change-Id: I2d5099f9ed03cc42061508cc78282412a09825cb Reviewed-by: Mikhail Svetkin <mikhail.svetkin@qt.io> Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de> Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch>
This commit is contained in:
parent
5d61fd8c22
commit
e631e900fd
@ -973,7 +973,7 @@ void QAccessibleTableCell::unselectCell()
|
||||
{
|
||||
|
||||
QAbstractItemView::SelectionMode selectionMode = view->selectionMode();
|
||||
if (!m_index.isValid() || (selectionMode & QAbstractItemView::NoSelection))
|
||||
if (!m_index.isValid() || (selectionMode == QAbstractItemView::NoSelection))
|
||||
return;
|
||||
|
||||
QAccessibleTableInterface *cellTable = table()->tableInterface();
|
||||
|
Loading…
Reference in New Issue
Block a user