Fix CppCheck in ChatWidget.cpp

/retroshare-gui/src/gui/chat/ChatWidget.cpp:482: warning:
Cppcheck(clarifyCondition): Boolean result is used in bitwise operation.
Clarify expression with parentheses.
This commit is contained in:
Phenom 2017-08-13 19:13:11 +02:00 committed by csoler
parent 88d84e0249
commit 214e382a0a

View File

@ -499,7 +499,7 @@ bool ChatWidget::eventFilter(QObject *obj, QEvent *event)
bTextselected=true;
}
}
ui->searchButton->setChecked(!ui->searchButton->isChecked() | bTextselected);
ui->searchButton->setChecked(!ui->searchButton->isChecked() || bTextselected);
ui->leSearch->setVisible(bTextselected);//To discard re-selection of text
on_searchButton_clicked(ui->searchButton->isChecked());
return true; // eat event