From 96303bb41cde2139deffc99686ef07aec96ac337 Mon Sep 17 00:00:00 2001 From: Gus Grubba Date: Thu, 6 Apr 2017 07:58:53 -0400 Subject: [PATCH] Fixing JavaScript exceptions --- src/PlanView/MissionSettingsEditor.qml | 6 +++--- src/QmlControls/QGCFileDialog.qml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/PlanView/MissionSettingsEditor.qml b/src/PlanView/MissionSettingsEditor.qml index 2957ab9f4..db7393687 100644 --- a/src/PlanView/MissionSettingsEditor.qml +++ b/src/PlanView/MissionSettingsEditor.qml @@ -75,9 +75,9 @@ Rectangle { Column { id: valuesColumn - anchors.left: parent.left - anchors.right: parent.right - anchors.top: parent.top + anchors.left: parent ? parent.left : undefined + anchors.right: parent ? parent.right : undefined + anchors.top: parent ? parent.top : undefined spacing: _margin SectionHeader { diff --git a/src/QmlControls/QGCFileDialog.qml b/src/QmlControls/QGCFileDialog.qml index 17d719a5d..2e3bb9dab 100644 --- a/src/QmlControls/QGCFileDialog.qml +++ b/src/QmlControls/QGCFileDialog.qml @@ -56,7 +56,7 @@ Item { FileDialog { id: fullFileDialog folder: "file://" + _root.folder - nameFilters: _root.nameFilters + nameFilters: _root.nameFilters ? _root.nameFilters : [] title: _root.title selectExisting: _root.selectExisting selectMultiple: false -- 2.22.0