aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/diveeventitem.cpp
diff options
context:
space:
mode:
authorGravatar Yosef Hamza <jo.adam.93@gmail.com>2014-04-03 21:16:15 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-04-03 12:49:22 -0700
commit0f5664e584fc402be13754d9ee4ee33e1eca3e25 (patch)
tree3fcbf7460e56a56b5f512ad3cf158a473029ac6e /qt-ui/profile/diveeventitem.cpp
parentc268b757dfc0aa9aa4d1b7fcd500660709e4d284 (diff)
downloadsubsurface-0f5664e584fc402be13754d9ee4ee33e1eca3e25.tar.gz
Edit name option for bookmarks
Add the option to edit the name of a bookmark to be more meaningful for the user they prefer. It works just as simple bookmarks and can be removed and hidden. It won't accept names longer than 22 characters because longer names will display as garbage text. Also changed the code from displaying flag depending on event name to depending on event type. Signed-off-by: Yousef Hamza <jo.adama.93@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/diveeventitem.cpp')
-rw-r--r--qt-ui/profile/diveeventitem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/profile/diveeventitem.cpp b/qt-ui/profile/diveeventitem.cpp
index 3f75ab10a..54e3e4cbf 100644
--- a/qt-ui/profile/diveeventitem.cpp
+++ b/qt-ui/profile/diveeventitem.cpp
@@ -59,7 +59,7 @@ void DiveEventItem::setupPixmap()
#define EVENT_PIXMAP(PIX) QPixmap(QString(PIX)).scaled(20, 20, Qt::KeepAspectRatio, Qt::SmoothTransformation)
if (!internalEvent->name) {
setPixmap(EVENT_PIXMAP(":warning"));
- } else if ((strcmp(internalEvent->name, "bookmark") == 0)) {
+ } else if (internalEvent->type == SAMPLE_EVENT_BOOKMARK) {
setPixmap(EVENT_PIXMAP(":flag"));
} else if (strcmp(internalEvent->name, "heading") == 0) {
setPixmap(EVENT_PIXMAP(":flag"));