From eb1fde4850e0d80eeb677f5c79d7078547cc30a6 Mon Sep 17 00:00:00 2001 From: Rustom Jehangir Date: Wed, 27 Jul 2016 18:29:17 -0700 Subject: [PATCH] Fix FactComboBox to handle null Facts --- src/FactSystem/FactControls/FactComboBox.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FactSystem/FactControls/FactComboBox.qml b/src/FactSystem/FactControls/FactComboBox.qml index 7c61bd4278..d56bbf11fc 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 -- GitLab