summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-30 14:19:34 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-30 14:19:34 -0700
commit055ac2a1a2ec6c684a07d9ca3e170b5496496fd0 (patch)
treebb4d3ddca84447dc3191d36f5ed9ccdec8d797b8 /qt-ui
parent1b7265d8ae15016fb26e3fcc25ef845945badc9e (diff)
downloadsubsurface-055ac2a1a2ec6c684a07d9ca3e170b5496496fd0.tar.gz
Mark divelist changed after removing a picture
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/divepicturewidget.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/divepicturewidget.cpp b/qt-ui/divepicturewidget.cpp
index 76d3e7c65..b1078b42b 100644
--- a/qt-ui/divepicturewidget.cpp
+++ b/qt-ui/divepicturewidget.cpp
@@ -1,5 +1,6 @@
#include "divepicturewidget.h"
#include <dive.h>
+#include <divelist.h>
#include <QtConcurrentMap>
#include <QDir>
#include <QHash>
@@ -102,6 +103,7 @@ void DivePictureModel::removePicture(const QString &fileUrl)
dive_remove_picture(stringPixmapCache[fileUrl].picture);
copy_dive(current_dive, &displayed_dive);
updateDivePictures();
+ mark_divelist_changed(true);
}
int DivePictureModel::rowCount(const QModelIndex &parent) const