From 4adb4911e6e5f22bb4d3de09e24410205aaf8e2a Mon Sep 17 00:00:00 2001 From: Tim Jenssen Date: Mon, 12 Sep 2022 19:57:31 +0200 Subject: [PATCH] qds: fix crash when the view is gone found at: https://sentry.io/organizations/the-qt-company-00/issues/3571989716 Change-Id: I61faa33716b1f6f3e0cc04cd4871cba354ecec28 Reviewed-by: Tim Jenssen --- .../qmldesigner/components/propertyeditor/gradientmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmldesigner/components/propertyeditor/gradientmodel.cpp b/src/plugins/qmldesigner/components/propertyeditor/gradientmodel.cpp index 4c2bd68c98a..6dc40a183d2 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/gradientmodel.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/gradientmodel.cpp @@ -468,7 +468,7 @@ QmlDesigner::AbstractView *GradientModel::view() const void GradientModel::resetPuppet() { - QTimer::singleShot(1000, [this]() { view()->resetPuppet(); }); + QTimer::singleShot(1000, view(), &QmlDesigner::AbstractView::resetPuppet); } QmlDesigner::ModelNode GradientModel::createGradientNode()