Commit eb1fde48 authored by Rustom Jehangir's avatar Rustom Jehangir

Fix FactComboBox to handle null Facts

parent 8b3548f9
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment