Commit bccae8b6 authored by Nikita Melnichenko's avatar Nikita Melnichenko

fixed a warning about parentheses

The warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses].
parent a82fd6f3
......@@ -205,7 +205,7 @@ bool KrMouseHandler::mouseReleaseEvent(QMouseEvent *e)
bool leftTriggerCondition = !mode->leftButtonSelects() && mode->shiftCtrlLeftButtonSelects();
bool rightTriggerCondition = !mode->rightButtonSelects() && mode->shiftCtrlRightButtonSelects();
if (leftButtonClicked && leftTriggerCondition || rightButtonClicked && rightTriggerCondition) {
if ((leftButtonClicked && leftTriggerCondition) || (rightButtonClicked && rightTriggerCondition)) {
// clear the current selection
_view->unselectAll();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment