Skip to content

Commit 6e4e8e2

Browse files
committed
Fix bugs in PropertyEditor
1 parent 0af59b5 commit 6e4e8e2

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎src/plugins/coreplugin/qml/panels/PropertiesPanel.qml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,20 +65,20 @@ QtObject {
6565
readonly property QtObject anchorNodePropertyMapper: null
6666
readonly property QtObject clipPropertyMapper: ClipPropertyMapper {
6767
selectionModel: d.addOn?.windowHandle.projectDocumentContext.document.selectionModel ?? null
68-
readonly property bool inactive: !(selectionModel?.selectionType in [1, 2, 4]) || !selectionModel?.selectionCount
68+
readonly property bool inactive: ![1, 2, 4].includes(selectionModel?.selectionType) || !selectionModel?.selectedCount
6969
}
7070
readonly property QtObject labelPropertyMapper: LabelPropertyMapper {
7171
selectionModel: d.addOn?.windowHandle.projectDocumentContext.document.selectionModel ?? null
72-
readonly property bool inactive: !(selectionModel?.selectionType === 3) || !selectionModel?.selectionCount
72+
readonly property bool inactive: selectionModel?.selectionType !== 3 || !selectionModel?.selectedCount
7373
}
7474
readonly property QtObject notePropertyMapper: null
7575
readonly property QtObject tempoPropertyMapper: TempoPropertyMapper {
7676
selectionModel: d.addOn?.windowHandle.projectDocumentContext.document.selectionModel ?? null
77-
readonly property bool inactive: !(selectionModel?.selectionType === 5) || !selectionModel?.selectionCount
77+
readonly property bool inactive: selectionModel?.selectionType !== 5 || !selectionModel?.selectedCount
7878
}
7979
readonly property QtObject trackPropertyMapper: TrackPropertyMapper {
8080
selectionModel: d.addOn?.windowHandle.projectDocumentContext.document.selectionModel ?? null
81-
readonly property bool inactive: !(selectionModel?.selectionType in [1, 2, 4, 6]) || !selectionModel?.selectionCount
81+
readonly property bool inactive: ![1, 2, 4, 6].includes(selectionModel?.selectionType) || !selectionModel?.selectedCount
8282
}
8383
}
8484
StackLayout {

‎src/plugins/coreplugin/qml/propertyeditors/ClipPropertyEditor.qml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ PropertyEditorGroupBox {
6868
valueRole: "value"
6969
currentIndex: indexOfValue(groupBox.propertyMapper?.associatedTrack)
7070
onActivated: (index) => {
71+
if (index === currentIndex)
72+
return
7173
assiciatedTrackSelector.beginTransaction()
7274
if (!assiciatedTrackSelector.transactionId)
7375
return

0 commit comments

Comments
 (0)