mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-26 07:59:35 -05:00
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:
parent
88d84e0249
commit
214e382a0a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user