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:
Tomaz Canabrava 2014-08-04 14:06:58 -03:00 committed by Dirk Hohndel
parent 0130f8411b
commit 7295c8c6ec

View file

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