forked from qt-creator/qt-creator
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 <tim.jenssen@qt.io>
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user