Skip to content

Commit

Permalink
Merge pull request mavlink#4108 from wingtra/fix/insert_wp_after_surv…
Browse files Browse the repository at this point in the history
…ey_item

Fix insert functionality after Survey Item
  • Loading branch information
DonLakeFlyer authored Oct 7, 2016
2 parents 16b2c52 + b52f38e commit 9c74170
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/MissionEditor/MissionEditor.qml
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ QGCView {
}

onInsert: {
var sequenceNumber = missionController.insertSimpleMissionItem(editorMap.center, insertAfterIndex)
var sequenceNumber = missionController.insertSimpleMissionItem(editorMap.center, index)
setCurrentItem(sequenceNumber)
}

Expand Down
4 changes: 2 additions & 2 deletions src/MissionEditor/MissionItemEditor.qml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Rectangle {

signal clicked
signal remove
signal insert(int insertAfterIndex)
signal insert
signal moveHomeToMapCenter

property bool _currentItem: missionItem.isCurrentItem
Expand Down Expand Up @@ -74,7 +74,7 @@ Rectangle {

MenuItem {
text: qsTr("Insert")
onTriggered: insert(missionItem.sequenceNumber)
onTriggered: insert()
}

MenuItem {
Expand Down

0 comments on commit 9c74170

Please sign in to comment.