aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qml
diff options
context:
space:
mode:
authorTasuku Suzuki <tasuku.suzuki@kdab.com>2019-12-22 22:57:14 +0900
committerTasuku Suzuki <tasuku.suzuki@kdab.com>2019-12-27 18:55:44 +0900
commit88e1dd9e77f12ec94cc87872c5cb75d798bfdcbf (patch)
treec5a28ab110d5e7ffd1e24829a3c5a614db458b13 /tools/qml
parent933c47f19bd05325579a5e5b46b910cdbf5947ec (diff)
Fix -no-gui build on macOS
Change-Id: Ifc520d58fc7294bad5c90e13ac72bb603f6fd33c Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tools/qml')
-rw-r--r--tools/qml/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/qml/main.cpp b/tools/qml/main.cpp
index f7d7b98277..7235c65aff 100644
--- a/tools/qml/main.cpp
+++ b/tools/qml/main.cpp
@@ -597,7 +597,7 @@ int main(int argc, char *argv[])
}
if (files.count() <= 0) {
-#if defined(Q_OS_DARWIN)
+#if defined(Q_OS_DARWIN) && defined(QT_GUI_LIB)
if (applicationType == QmlApplicationTypeGui)
exitTimerId = static_cast<LoaderApplication *>(app.get())->startTimer(FILE_OPEN_EVENT_WAIT_TIME);
else