Unverified Commit 4e215c91 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #6951 from DonLakeFlyer/PlanSaveOnExit

Fix Plan save message on exit
parents 8c425de6 4573c4df
......@@ -37,6 +37,9 @@ QGCView {
property bool planControlColapsed: false
///< This property is used to determine dirty state for prompting on QGC shutdown
readonly property bool dirty: _planMasterController.dirty
readonly property int _decimalPlaces: 8
readonly property real _horizontalMargin: ScreenTools.defaultFontPixelWidth * 0.5
readonly property real _margin: ScreenTools.defaultFontPixelHeight * 0.5
......
......@@ -164,7 +164,7 @@ Item {
onYes: activeConnectionsCloseDialog.check()
function check() {
if (planViewLoader.item && planViewLoader.item.syncNeeded) {
if (planViewLoader.item && planViewLoader.item.dirty) {
unsavedMissionCloseDialog.open()
} else {
activeConnectionsCloseDialog.check()
......
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