mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Merge pull request #2742 from bstoeger/clean87
cleanup: don't keep pointer-to-picture in PictureEntry
This commit is contained in:
commit
2990010ccd
2 changed files with 1 additions and 2 deletions
|
@ -59,7 +59,7 @@ void DivePictureModel::updateDivePictures()
|
|||
if (dive->selected) {
|
||||
int first = pictures.count();
|
||||
FOR_EACH_PICTURE(dive)
|
||||
pictures.push_back({ dive->id, picture, picture->filename, {}, picture->offset.seconds, {.seconds = 0}});
|
||||
pictures.push_back({ dive->id, picture->filename, {}, picture->offset.seconds, {.seconds = 0}});
|
||||
|
||||
// Sort pictures of this dive by offset.
|
||||
// Thus, the list will be sorted by (diveId, offset).
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
|
||||
struct PictureEntry {
|
||||
int diveId;
|
||||
struct picture *picture;
|
||||
QString filename;
|
||||
QImage image;
|
||||
int offsetSeconds;
|
||||
|
|
Loading…
Add table
Reference in a new issue