Commit 9b7b32b7 authored by Don Gagne's avatar Don Gagne

Check the log save settings before emitting save log signal

parent c27191b0
...@@ -694,7 +694,11 @@ void MAVLinkProtocol::_startLogging(void) ...@@ -694,7 +694,11 @@ void MAVLinkProtocol::_startLogging(void)
void MAVLinkProtocol::_stopLogging(void) void MAVLinkProtocol::_stopLogging(void)
{ {
if (_closeLogFile()) { if (_closeLogFile()) {
emit saveTempFlightDataLog(_tempLogFile.fileName()); if (qgcApp()->promptFlightDataSave()) {
emit saveTempFlightDataLog(_tempLogFile.fileName());
} else {
QFile::remove(_tempLogFile.fileName());
}
} }
} }
......
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