Skip to content

Commit

Permalink
#24626: Fixed a crash when searching while More popup was visible and…
Browse files Browse the repository at this point in the history
… an undefined assignment error to the expanded property
  • Loading branch information
krasko78 committed Sep 16, 2024
1 parent fe35472 commit ac99311
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/palette/qml/MuseScore/Palette/internal/PaletteTree.qml
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,13 @@ StyledListView {
paletteTree.implicitWidth = Math.max(paletteTree.implicitWidth, w);
}

readonly property bool expanded: paletteTree.searchOpened || model.expanded
Component.onDestruction: {
if (palettePopup.active && palettePopup.model === model) {
palettePopup.close()
}
}

readonly property bool expanded: paletteTree.searchOpened || Boolean(model.expanded)

function toggleExpand() {
model.expanded = !expanded
Expand Down

0 comments on commit ac99311

Please sign in to comment.