From ff70578d57be513d278cbab7b1f9d74e6b525bae Mon Sep 17 00:00:00 2001 From: James Turner Date: Tue, 24 Dec 2019 23:14:58 +0000 Subject: [PATCH] Launcher: Fix a QML warning on startup --- src/GUI/qml/AircraftGridView.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/GUI/qml/AircraftGridView.qml b/src/GUI/qml/AircraftGridView.qml index 5af2cf11a..04dd63496 100644 --- a/src/GUI/qml/AircraftGridView.qml +++ b/src/GUI/qml/AircraftGridView.qml @@ -11,6 +11,9 @@ Item { function updateSelectionFromLauncher() { + if (!model) + return; + var row = model.indexForURI(_launcher.selectedAircraft); if (row >= 0) { view.currentIndex = row;