Skip to content

Commit

Permalink
itemviews: Fix a condition typo
Browse files Browse the repository at this point in the history
'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 <[email protected]>
Reviewed-by: Christian Ehrlicher <[email protected]>
Reviewed-by: Samuel Gaist <[email protected]>
  • Loading branch information
ABBAPOH committed Oct 20, 2018
1 parent 5d61fd8 commit e631e90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widgets/accessible/itemviews.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e631e90

Please sign in to comment.