aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-02-02 21:23:52 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-04-08 09:54:47 +0300
commita16cca1fcb618d1a647157693ce209ea5bdd73d3 (patch)
tree48d0ae2129c399f039cad9f619ed6e9512bdd310 /desktop-widgets
parent403c920f29ba9ba877b1d59c85b8905addd28762 (diff)
downloadsubsurface-a16cca1fcb618d1a647157693ce209ea5bdd73d3.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 'desktop-widgets')
-rw-r--r--desktop-widgets/divelogexportdialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/divelogexportdialog.cpp b/desktop-widgets/divelogexportdialog.cpp
index 12b73be2d..e22aff433 100644
--- a/desktop-widgets/divelogexportdialog.cpp
+++ b/desktop-widgets/divelogexportdialog.cpp
@@ -252,7 +252,7 @@ void DiveLogExportDialog::exportProfile(const QString filename, const bool selec
void DiveLogExportDialog::saveProfile(const struct dive *dive, const QString filename)
{
ProfileWidget2 *profile = MainWindow::instance()->graphics;
- profile->plotDive(dive, true);
+ profile->plotDive(dive, true, false, true);
profile->setToolTipVisibile(false);
QPixmap pix = profile->grab();
profile->setToolTipVisibile(true);