diff --git a/modules/detachedcontent/bluetooth/Settings.qml b/modules/detachedcontent/bluetooth/Settings.qml index 808cd7c0..a0d7f128 100644 --- a/modules/detachedcontent/bluetooth/Settings.qml +++ b/modules/detachedcontent/bluetooth/Settings.qml @@ -274,7 +274,7 @@ ColumnLayout { CustomSpinBox { min: 0 value: root.session.bt.currentAdapter.discoverableTimeout - onValueModified: root.session.bt.currentAdapter.discoverableTimeout = value + onValueModified: value => root.session.bt.currentAdapter.discoverableTimeout = value } } } diff --git a/widgets/CustomSpinBox.qml b/widgets/CustomSpinBox.qml index 5021bd5c..7bd4d2b8 100644 --- a/widgets/CustomSpinBox.qml +++ b/widgets/CustomSpinBox.qml @@ -9,8 +9,8 @@ RowLayout { id: root property int value - property real max: NaN - property real min: NaN + property real max: Infinity + property real min: -Infinity property alias repeatRate: timer.interval signal valueModified(value: int)