aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports')
-rw-r--r--src/imports/dialogs/plugin.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/imports/dialogs/plugin.cpp b/src/imports/dialogs/plugin.cpp
index 249152c48c..8fa87bfc0b 100644
--- a/src/imports/dialogs/plugin.cpp
+++ b/src/imports/dialogs/plugin.cpp
@@ -122,7 +122,10 @@ protected:
//qDebug() << Q_FUNC_INFO << qmlDir << qmlName << uri;
bool needQml = true;
-#ifndef PURE_QML_ONLY
+#ifdef PURE_QML_ONLY
+ Q_UNUSED(widgetsDir)
+ Q_UNUSED(hasTopLevelWindows)
+#else
// If there is a qmldir and we have a QApplication instance (as opposed to a
// widget-free QGuiApplication), assume that the widget-based dialog will work.
if (hasTopLevelWindows && widgetsDir.exists("qmldir") &&