From 17e0ff286e2e1577badb6ed132356110f9940f39 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Thu, 3 Dec 2015 16:39:58 -0800 Subject: [PATCH] Don't show current selection Simpler this way --- src/QmlControls/MissionCommandDialog.qml | 27 +++--------------------- 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/src/QmlControls/MissionCommandDialog.qml b/src/QmlControls/MissionCommandDialog.qml index 77197db28..d41004f7e 100644 --- a/src/QmlControls/MissionCommandDialog.qml +++ b/src/QmlControls/MissionCommandDialog.qml @@ -49,7 +49,6 @@ QGCViewDialog { function categorySelected(category) { commandList.model = QGroundControl.missionCommands.getCommandsForCategory(category) - console.log("changing model", category) } Component.onCompleted: { @@ -71,33 +70,13 @@ QGCViewDialog { spacing: ScreenTools.defaultFontPixelHeight / 2 orientation: ListView.Vertical - onModelChanged: { - var currentCategory = categoryCombo.currentText - - currentIndex = -1 - if (missionItem.category == currentCategory) { - var commandList = QGroundControl.missionCommands.getCommandsForCategory(currentCategory) - for (var i=0; i