diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-06-22 06:44:53 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-22 10:57:56 -0700 |
commit | 64c7202e2d265a98130a91bade73f14cf22541e5 (patch) | |
tree | dea73d53f140e9dc1dcb807d1dbb2e14f15dee9f /qt-ui/profile | |
parent | 1ecc9b0cc0c4e7ad2b03236a788cf875189f1832 (diff) | |
download | subsurface-64c7202e2d265a98130a91bade73f14cf22541e5.tar.gz |
Address of array is always non-NULL
We want to test the string instead.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile')
-rw-r--r-- | qt-ui/profile/diveeventitem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/profile/diveeventitem.cpp b/qt-ui/profile/diveeventitem.cpp index 0d81e7b45..0bbc84267 100644 --- a/qt-ui/profile/diveeventitem.cpp +++ b/qt-ui/profile/diveeventitem.cpp @@ -62,7 +62,7 @@ void DiveEventItem::setupPixmap() #define EVENT_PIXMAP(PIX) QPixmap(QString(PIX)).scaled(sz_pix, sz_pix, Qt::KeepAspectRatio, Qt::SmoothTransformation) #define EVENT_PIXMAP_BIGGER(PIX) QPixmap(QString(PIX)).scaled(sz_bigger, sz_bigger, Qt::KeepAspectRatio, Qt::SmoothTransformation) - if (!internalEvent->name) { + if (same_string(internalEvent->name, "")) { setPixmap(EVENT_PIXMAP(":warning")); } else if (internalEvent->type == SAMPLE_EVENT_BOOKMARK) { setPixmap(EVENT_PIXMAP(":flag")); |