diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-02-02 21:23:52 +0100 |
---|---|---|
committer | Robert C. Helling <helling@atdotde.de> | 2019-02-07 16:06:43 +0100 |
commit | 8a8063c1cd7b8e5eae861a8d7eeb89e7e3251e03 (patch) | |
tree | 261d1a78d4c21378e08380def3775823b82fe079 /qt-models/divepicturemodel.cpp | |
parent | 07b0df215f5562657a3a2c9dd20a95d489e8dcd3 (diff) | |
download | subsurface-8a8063c1cd7b8e5eae861a8d7eeb89e7e3251e03.tar.gz |
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 <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/divepicturemodel.cpp')
-rw-r--r-- | qt-models/divepicturemodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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() |