From a16cca1fcb618d1a647157693ce209ea5bdd73d3 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 2 Feb 2019 21:23:52 +0100 Subject: Profile: add "synchronous" mode for picture plotting The thumbnails were fetched in the background to achieve a snappier UI. The problem with that is that on LaTeX etc. export only placeholder thumbnails were shown. Therefore, implement a synchronous mode. This only tries to fetch cached thumbnails or calculate thumbnails for images. Videos and remote files are not supported. Fixes #1963 Signed-off-by: Berthold Stoeger --- qt-models/divepicturemodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-models') diff --git a/qt-models/divepicturemodel.cpp b/qt-models/divepicturemodel.cpp index 4db81d546..babd404f5 100644 --- a/qt-models/divepicturemodel.cpp +++ b/qt-models/divepicturemodel.cpp @@ -42,7 +42,7 @@ void DivePictureModel::updateThumbnails() { updateZoom(); for (PictureEntry &entry: pictures) - entry.image = Thumbnailer::instance()->fetchThumbnail(entry.filename); + entry.image = Thumbnailer::instance()->fetchThumbnail(entry.filename, false); } void DivePictureModel::updateDivePictures() -- cgit v1.2.3-70-g09d2