diff options
-rw-r--r-- | profile-widget/divepixmapitem.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/profile-widget/divepixmapitem.cpp b/profile-widget/divepixmapitem.cpp index 58d6f2776..959e8d2c4 100644 --- a/profile-widget/divepixmapitem.cpp +++ b/profile-widget/divepixmapitem.cpp @@ -3,6 +3,7 @@ #include "profile-widget/animationfunctions.h" #include "qt-models/divepicturemodel.h" #include "core/pref.h" +#include "core/qthelper.h" #ifndef SUBSURFACE_MOBILE #include "desktop-widgets/preferences/preferencesdialog.h" #endif @@ -106,9 +107,8 @@ void DivePictureItem::hoverLeaveEvent(QGraphicsSceneHoverEvent*) void DivePictureItem::mousePressEvent(QGraphicsSceneMouseEvent *event) { - if (event->button() == Qt::LeftButton) { - QDesktopServices::openUrl(QUrl::fromLocalFile(fileUrl)); - } + if (event->button() == Qt::LeftButton) + QDesktopServices::openUrl(QUrl::fromLocalFile(localFilePath(fileUrl))); } void DivePictureItem::removePicture() |