Workaround for a Qt crash : Resolve a random Qt crash from using indicator on switch. This way, switch is not loaded.

https://bugreports.qt.io/browse/QTBUG-82285
This commit is contained in:
Julien Wadel 2022-01-31 17:53:07 +01:00
parent f68e4c1ff2
commit 4bdc1064fd

View file

@ -260,7 +260,11 @@ ScrollableListView {
ActionBar { ActionBar {
iconSize: SipAddressesViewStyle.entry.iconSize iconSize: SipAddressesViewStyle.entry.iconSize
Loader {
anchors.verticalCenter: parent.verticalCenter
width:50
sourceComponent: Component{
Switch{ Switch{
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
width:50 width:50
@ -275,7 +279,10 @@ ScrollableListView {
//checked = !checked //checked = !checked
switchHandler(!checked, index) switchHandler(!checked, index)
} }
}
}
active: sipAddressesView.showSwitch // Resolve a random Qt crash from using indicator on switch. This way, switch is not loaded.
// https://bugreports.qt.io/browse/QTBUG-82285.
} }
Repeater { Repeater {