Use parentheses in statement with && and ||.

Forwardport from Qt 4

Change-Id: I4f968559a7371b87343cb5825eb83b0099364cf2
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
(cherry picked from commit 330b0bece4d7805067f488c157532f9fb9b48bbc)
This commit is contained in:
Frederik Gladhorn 2012-04-13 14:54:30 +02:00 committed by Qt by Nokia
parent dab2e1fea7
commit d64ad022f3

View File

@ -249,7 +249,7 @@ QAccessible::State QAccessibleMenuItem::state() const
QAccessible::State s;
QWidget *own = owner();
if (own && own->testAttribute(Qt::WA_WState_Visible) == false || m_action->isVisible() == false) {
if (own && (own->testAttribute(Qt::WA_WState_Visible) == false || m_action->isVisible() == false)) {
s.invisible = true;
}