mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-17 22:16:16 +00:00
Mark divelist changed after removing a picture
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
1b7265d8ae
commit
055ac2a1a2
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue