mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Enable removal of pictures from different dives at the same moment
Suggested-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at> Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
parent
7bc77947f6
commit
82170579ad
3 changed files with 12 additions and 4 deletions
|
@ -119,7 +119,12 @@ QVariant DivePictureModel::data(const QModelIndex &index, int role) const
|
|||
|
||||
void DivePictureModel::removePicture(const QString &fileUrl, bool last)
|
||||
{
|
||||
dive_remove_picture(fileUrl.toUtf8().data());
|
||||
int i;
|
||||
struct dive *dive;
|
||||
for_each_dive (i, dive) {
|
||||
if (dive->selected && dive_remove_picture(dive, fileUrl.toUtf8().data()))
|
||||
break;
|
||||
}
|
||||
if (last) {
|
||||
copy_dive(current_dive, &displayed_dive);
|
||||
updateDivePictures();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue