Commit 9c741700 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #4108 from wingtra/fix/insert_wp_after_survey_item

Fix insert functionality after Survey Item
parents 16b2c52f b52f38ed
......@@ -672,7 +672,7 @@ QGCView {
}
onInsert: {
var sequenceNumber = missionController.insertSimpleMissionItem(editorMap.center, insertAfterIndex)
var sequenceNumber = missionController.insertSimpleMissionItem(editorMap.center, index)
setCurrentItem(sequenceNumber)
}
......
......@@ -23,7 +23,7 @@ Rectangle {
signal clicked
signal remove
signal insert(int insertAfterIndex)
signal insert
signal moveHomeToMapCenter
property bool _currentItem: missionItem.isCurrentItem
......@@ -74,7 +74,7 @@ Rectangle {
MenuItem {
text: qsTr("Insert")
onTriggered: insert(missionItem.sequenceNumber)
onTriggered: insert()
}
MenuItem {
......
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