[ui] CompatibilityManager: Update message and check for null nodes model

This commit is contained in:
Candice Bentéjac 2023-06-15 19:13:20 +02:00
parent cdf5c6746f
commit 91b604574a

View file

@ -16,7 +16,7 @@ MessageDialog {
// alias to underlying compatibilityNodes model
readonly property var nodesModel: uigraph ? uigraph.graph.compatibilityNodes : undefined
// the total number of compatibility issues
readonly property int issueCount: (nodesModel != undefined) ? nodesModel.count : 0
readonly property int issueCount: (nodesModel !== undefined && nodesModel !== null) ? nodesModel.count : 0
// the number of CompatibilityNodes that can be upgraded
readonly property int upgradableCount: {
var count = 0
@ -113,7 +113,7 @@ MessageDialog {
Label {
id: questionLabel
text: upgradableCount ? "Upgrade all possible nodes to current version ?"
text: upgradableCount ? "Upgrade all possible nodes to current version?"
: "Those nodes can't be upgraded, remove them manually if needed."
}
}