diff --git a/src/FactSystem/FactControls/FactComboBox.qml b/src/FactSystem/FactControls/FactComboBox.qml index 7c61bd4278cc099ff2841ecc5b2b0d14117caae2..d56bbf11fc4ffc2a7c5115e76d7cd103639f6333 100644 --- a/src/FactSystem/FactControls/FactComboBox.qml +++ b/src/FactSystem/FactControls/FactComboBox.qml @@ -10,7 +10,7 @@ QGCComboBox { property Fact fact: Fact { } property bool indexModel: true ///< true: model must be specifed, selected index is fact value, false: use enum meta data - model: fact.enumStrings + model: fact ? fact.enumStrings : null currentIndex: indexModel ? fact.value : fact.enumIndex