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,22 +260,29 @@ ScrollableListView {
ActionBar { ActionBar {
iconSize: SipAddressesViewStyle.entry.iconSize iconSize: SipAddressesViewStyle.entry.iconSize
Loader {
Switch{
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
width:50 width:50
//Layout.preferredWidth: 50
indicatorStyle: SwitchStyle.aux
visible: sipAddressesView.showSwitch sourceComponent: Component{
Switch{
enabled:true anchors.verticalCenter: parent.verticalCenter
checked: false width:50
onClicked: { //Layout.preferredWidth: 50
//checked = !checked indicatorStyle: SwitchStyle.aux
switchHandler(!checked, index)
visible: sipAddressesView.showSwitch
enabled:true
checked: false
onClicked: {
//checked = !checked
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 {