diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-07-23 16:01:26 +0900 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-07-23 16:01:26 +0900 |
commit | f718fdab80ccbc718e76f5f8e39bdfe3964ce1a6 (patch) | |
tree | efd17e25370d1f6249edc126ac07574ba20b8489 /profile-widget/diveeventitem.cpp | |
parent | 177e21076b9813eefca7939cda8c3eb559a4d145 (diff) | |
download | subsurface-f718fdab80ccbc718e76f5f8e39bdfe3964ce1a6.tar.gz |
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>
Diffstat (limited to 'profile-widget/diveeventitem.cpp')
-rw-r--r-- | profile-widget/diveeventitem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/profile-widget/diveeventitem.cpp b/profile-widget/diveeventitem.cpp index c90857417..9acc643ad 100644 --- a/profile-widget/diveeventitem.cpp +++ b/profile-widget/diveeventitem.cpp @@ -134,8 +134,8 @@ void DiveEventItem::setupToolTipString() // warn of high or low pO₂ and are turning it into a set point change event name += "\n" + tr("Manual switch to OC"); } else { - name += internalEvent->flags == SAMPLE_FLAGS_BEGIN ? tr(" begin", "Starts with space!") : - internalEvent->flags == SAMPLE_FLAGS_END ? tr(" end", "Starts with space!") : ""; + name += internalEvent->flags & SAMPLE_FLAGS_BEGIN ? tr(" begin", "Starts with space!") : + internalEvent->flags & SAMPLE_FLAGS_END ? tr(" end", "Starts with space!") : ""; } // qDebug() << name; setToolTip(name); |