Mark divelist changed after removing a picture

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-07-30 14:19:34 -07:00
parent 1b7265d8ae
commit 055ac2a1a2

View file

@ -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