summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/divelistview.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp
index 4f5bfec26..621002ced 100644
--- a/qt-ui/divelistview.cpp
+++ b/qt-ui/divelistview.cpp
@@ -785,8 +785,10 @@ void DiveListView::loadImages()
}
mark_divelist_changed(true);
- MainWindow::instance()->refreshDisplay();
+ // 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();
}
QString DiveListView::lastUsedImageDir()