From: Nicolas Fella Date: Thu, 14 Jan 2021 14:23:39 +0000 (+0100) Subject: [PATCH] Don't manually call reverseTwinsChanged when destructing FormLayout X-Git-Tag: archive/raspbian/6.6.0-2+rpi1~1^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7f443411aafa5b736925c5b0dd39e8290a4709df;p=kf6-kirigami.git [PATCH] Don't manually call reverseTwinsChanged when destructing FormLayout This line causes a crash when destructing the screenlocker KCM. It doesn't seem to be caused by reverseTwinsChanged itself but rather by accessing the Qt object. I don't fully undestand the root cause. However the call itself appears to be unnecessary since in the line above we write to reverseTwins and that triggers the changed signal if needed. BUG: 431419 BUG: 428461 Gbp-Pq: Name upstream-b4a6c562-dont-manually-call-reverseTwinChanged-when-destructing-FormLayout.patch --- diff --git a/src/controls/FormLayout.qml b/src/controls/FormLayout.qml index 74292fd..a27903f 100644 --- a/src/controls/FormLayout.qml +++ b/src/controls/FormLayout.qml @@ -84,7 +84,6 @@ Item { Component.onDestruction: { for (let i in twinFormLayouts) { twinFormLayouts[i].children[0].reverseTwins = twinFormLayouts[i].children[0].reverseTwins.filter(function(value, index, arr){ return value != root;}) - Qt.callLater(() => twinFormLayouts[i].children[0].reverseTwinsChanged()); } } GridLayout {