From 8288d6e97b00f08630eec5ca3024b31dd73a5d15 Mon Sep 17 00:00:00 2001 From: Miikka Heikkinen Date: Mon, 30 Mar 2020 11:55:30 +0300 Subject: [PATCH] Fix compile issue when there is no quick3dassetimport module Change-Id: I769a977f8422e002ed5680c1788aa6d3948f0534 Reviewed-by: Mahmoud Badri --- .../components/itemlibrary/itemlibraryassetimporter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/qmldesigner/components/itemlibrary/itemlibraryassetimporter.cpp b/src/plugins/qmldesigner/components/itemlibrary/itemlibraryassetimporter.cpp index 5d2686e8995..37f3acd4aa4 100644 --- a/src/plugins/qmldesigner/components/itemlibrary/itemlibraryassetimporter.cpp +++ b/src/plugins/qmldesigner/components/itemlibrary/itemlibraryassetimporter.cpp @@ -491,6 +491,7 @@ bool ItemLibraryAssetImporter::generateComponentIcon(int size, const QString &ic void ItemLibraryAssetImporter::finalizeQuick3DImport() { +#ifdef IMPORT_QUICK3D_ASSETS if (!isCancelled()) { // Don't allow cancel anymore as existing asset overwrites are not trivially recoverable. // Also, on Windows at least you can't delete a subdirectory of a watched directory, @@ -532,6 +533,7 @@ void ItemLibraryAssetImporter::finalizeQuick3DImport() notifyFinished(); } } +#endif } bool ItemLibraryAssetImporter::isCancelled() const