mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Do not recreate all the dive just because a picture was added.
If we add a picture to the dive, this will not change anything else, so there's no need to recalculate the profile_plot info. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0130f8411b
commit
7295c8c6ec
1 changed files with 2 additions and 4 deletions
|
@ -786,10 +786,8 @@ void DiveListView::loadImages()
|
|||
}
|
||||
|
||||
mark_divelist_changed(true);
|
||||
// the sequence is somewhat magic - replot re-populates the displayed_dive.
|
||||
// calling refreshDisplay afterwards gets the picture model populated and the thumbnails displayed
|
||||
MainWindow::instance()->graphics()->replot();
|
||||
MainWindow::instance()->refreshDisplay();
|
||||
copy_dive(current_dive, &displayed_dive);
|
||||
DivePictureModel::instance()->updateDivePictures();
|
||||
}
|
||||
|
||||
QString DiveListView::lastUsedImageDir()
|
||||
|
|
Loading…
Add table
Reference in a new issue