one more.
On Mon, Aug 4, 2014 at 1:30 PM, Tomaz Canabrava <[email protected]> wrote: > we are getting close. :) >
From 04143f5a5913de9a34ed9a91b3fec0988cb2010a Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava <[email protected]> Date: Mon, 4 Aug 2014 14:06:58 -0300 Subject: [PATCH 4/4] 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 <[email protected]> --- qt-ui/divelistview.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp index 442ea1f..d58f312 100644 --- a/qt-ui/divelistview.cpp +++ b/qt-ui/divelistview.cpp @@ -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() -- 2.0.4
_______________________________________________ subsurface mailing list [email protected] http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface
