From f3fcce9f4fbba439aae3a0fa85a6261456367e7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Jen=C3=9Fen?= Date: Thu, 11 May 2023 10:27:31 +0200 Subject: [PATCH] qds: workaround that appbundle finds the images Task-number: QDS-9856 Change-Id: I4efe17b7a5daca12f29ac2d63bde3b5c8c3a142b Reviewed-by: Burak Hancerli Reviewed-by: Thomas Hartmann --- .../components/componentcore/modelnodeoperations.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/qmldesigner/components/componentcore/modelnodeoperations.cpp b/src/plugins/qmldesigner/components/componentcore/modelnodeoperations.cpp index 918b06c6379..3dbe386ce16 100644 --- a/src/plugins/qmldesigner/components/componentcore/modelnodeoperations.cpp +++ b/src/plugins/qmldesigner/components/componentcore/modelnodeoperations.cpp @@ -1673,6 +1673,11 @@ void openEffectMaker(const QString &filePath) Utils::QtcProcess *qqemProcess = new Utils::QtcProcess(); qqemProcess->setEnvironment(env); qqemProcess->setCommand({ effectMakerPath, arguments }); + + // workaround that effect maker can find the images QTBUG-113531 + if (env.osType() == Utils::OsTypeMac) + qqemProcess->setWorkingDirectory(baseQtVersion->qmlPath().pathAppended("QtQuickEffectMaker")); + QObject::connect(qqemProcess, &Utils::QtcProcess::done, [qqemProcess]() { qqemProcess->deleteLater(); });