mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
Event flags should be checked as bits, not values
This becomes obvious with the new severity bits introduced in the Suunto EON Steel parser. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
177e21076b
commit
f718fdab80
1 changed files with 2 additions and 2 deletions
|
@ -134,8 +134,8 @@ void DiveEventItem::setupToolTipString()
|
||||||
// warn of high or low pO₂ and are turning it into a set point change event
|
// warn of high or low pO₂ and are turning it into a set point change event
|
||||||
name += "\n" + tr("Manual switch to OC");
|
name += "\n" + tr("Manual switch to OC");
|
||||||
} else {
|
} else {
|
||||||
name += internalEvent->flags == SAMPLE_FLAGS_BEGIN ? tr(" begin", "Starts with space!") :
|
name += internalEvent->flags & SAMPLE_FLAGS_BEGIN ? tr(" begin", "Starts with space!") :
|
||||||
internalEvent->flags == SAMPLE_FLAGS_END ? tr(" end", "Starts with space!") : "";
|
internalEvent->flags & SAMPLE_FLAGS_END ? tr(" end", "Starts with space!") : "";
|
||||||
}
|
}
|
||||||
// qDebug() << name;
|
// qDebug() << name;
|
||||||
setToolTip(name);
|
setToolTip(name);
|
||||||
|
|
Loading…
Add table
Reference in a new issue