diff options
Diffstat (limited to 'qt-ui/profile/divepixmapitem.cpp')
-rw-r--r-- | qt-ui/profile/divepixmapitem.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/qt-ui/profile/divepixmapitem.cpp b/qt-ui/profile/divepixmapitem.cpp index 3fb06adb9..41541c21e 100644 --- a/qt-ui/profile/divepixmapitem.cpp +++ b/qt-ui/profile/divepixmapitem.cpp @@ -119,9 +119,7 @@ void DivePictureItem::mousePressEvent(QGraphicsSceneMouseEvent *event) void DivePictureItem::removePicture() { - /* this is a WIP, it doesn't really *removes* anything, merely hides it. - * good workaround, I still need to figure out how to activelly remove - * it from the model. */ button->hide(); hide(); + DivePictureModel::instance()->removePicture(fileUrl); } |