Logical disjunction always evaluates to true in services/panel-service.c
Bug #1500519 reported by
Colin Ian King
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Unity |
New
|
Undecided
|
Unassigned | ||
unity (Ubuntu) |
New
|
Medium
|
Unassigned |
Bug Description
Line 673 of services/
else if (entry && (event->detail == 2 || event->detail >= 4 || event->detail <= 7))
The clause: (event->detail == 2 || event->detail >= 4 || event->detail <= 7) always evaluates to true. Is that the intention. Anyhow, checking against event detail hard coded values is a bit opaque too, so who knows.
And line 680 too:
if (event->detail >= 4 || event->detail <= 7)
this always evaluates as true too. Think that's a bug.
Changed in unity (Ubuntu): | |
importance: | Undecided → Medium |
To post a comment you must log in.