From 46049bac323badde4d619df459d77f0e26cd16d8 Mon Sep 17 00:00:00 2001 From: Miikka Heikkinen Date: Mon, 23 May 2022 15:17:36 +0300 Subject: [PATCH] QmlDesigner: Remove hardcoded timeout from 3D import puppet It doesn't seem that this timeout is needed. Fixes: QDS-6909 Change-Id: I7794d8548acd75fbb220a20458d091f413b5fcbb Reviewed-by: Thomas Hartmann Reviewed-by: Mahmoud Badri Reviewed-by: --- .../qtcreator/qml/qmlpuppet/qml2puppet/import3d/import3d.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/share/qtcreator/qml/qmlpuppet/qml2puppet/import3d/import3d.cpp b/share/qtcreator/qml/qmlpuppet/qml2puppet/import3d/import3d.cpp index 5f448b90da5..1f24aaca8f8 100644 --- a/share/qtcreator/qml/qmlpuppet/qml2puppet/import3d/import3d.cpp +++ b/share/qtcreator/qml/qmlpuppet/qml2puppet/import3d/import3d.cpp @@ -77,9 +77,8 @@ void import3D(const QString &sourceAsset, const QString &outDir, const QString & } } - // Allow little time for file operations to finish - QTimer::singleShot(2000, nullptr, []() { - qApp->exit(0); + QTimer::singleShot(0, nullptr, []() { + qApp->quit(); }); }