Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
4e215c91
Unverified
Commit
4e215c91
authored
Oct 25, 2018
by
Don Gagne
Committed by
GitHub
Oct 25, 2018
Browse files
Merge pull request #6951 from DonLakeFlyer/PlanSaveOnExit
Fix Plan save message on exit
parents
8c425de6
4573c4df
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/PlanView/PlanView.qml
View file @
4e215c91
...
...
@@ -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
...
...
src/ui/MainWindowInner.qml
View file @
4e215c91
...
...
@@ -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
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment