mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
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:
parent
f68e4c1ff2
commit
4bdc1064fd
1 changed files with 19 additions and 12 deletions
|
|
@ -260,22 +260,29 @@ ScrollableListView {
|
|||
|
||||
ActionBar {
|
||||
iconSize: SipAddressesViewStyle.entry.iconSize
|
||||
|
||||
Switch{
|
||||
Loader {
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
width:50
|
||||
//Layout.preferredWidth: 50
|
||||
indicatorStyle: SwitchStyle.aux
|
||||
|
||||
visible: sipAddressesView.showSwitch
|
||||
|
||||
enabled:true
|
||||
checked: false
|
||||
onClicked: {
|
||||
//checked = !checked
|
||||
switchHandler(!checked, index)
|
||||
sourceComponent: Component{
|
||||
Switch{
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
width:50
|
||||
//Layout.preferredWidth: 50
|
||||
indicatorStyle: SwitchStyle.aux
|
||||
|
||||
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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue