From 8a8063c1cd7b8e5eae861a8d7eeb89e7e3251e03 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 --- desktop-widgets/divelogexportdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop-widgets') diff --git a/desktop-widgets/divelogexportdialog.cpp b/desktop-widgets/divelogexportdialog.cpp index 37fb8cee4..04f0b03de 100644 --- a/desktop-widgets/divelogexportdialog.cpp +++ b/desktop-widgets/divelogexportdialog.cpp @@ -254,7 +254,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); -- cgit v1.2.3-70-g09d2