summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-ui/divelistview.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp
index 442ea1fb7..d58f31284 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()