Skip to content

Commit

Permalink
Fix QML errors in InstrumentsTreeItemDelegate
Browse files Browse the repository at this point in the history
- `popup` is not defined (anymore), because that's `openedPopup` now
- `openedPopup` is readonly, because it is an alias to `Loader.item`. Trying to set it to `null` doesn't make sense and causes an error.
  • Loading branch information
cbjeukendrup committed Oct 27, 2024
1 parent 0232292 commit 95249f7
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,13 @@ FocusableControl {
openedPopup.load(item)

openedPopup.opened.connect(function() {
root.popupOpened(popup.x, popup.y, popup.height)
root.popupOpened(openedPopup.x, openedPopup.y, openedPopup.height)
})

openedPopup.closed.connect(function() {
root.popupClosed()

Qt.callLater(function() {
openedPopup = null
popupLoader.sourceComponent = null
})
})
Expand Down

0 comments on commit 95249f7

Please sign in to comment.