diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-07-30 14:19:34 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-30 14:19:34 -0700 |
commit | 055ac2a1a2ec6c684a07d9ca3e170b5496496fd0 (patch) | |
tree | bb4d3ddca84447dc3191d36f5ed9ccdec8d797b8 /qt-ui | |
parent | 1b7265d8ae15016fb26e3fcc25ef845945badc9e (diff) | |
download | subsurface-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.cpp | 2 |
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 |