Commit 5ed77ec2 authored by Gus Grubba's avatar Gus Grubba

Remove test where it doesn’t belong.

parent fe8ca322
......@@ -505,8 +505,6 @@ void QGCApplication::criticalMessageBoxOnMainThread(const QString& title, const
void QGCApplication::saveTelemetryLogOnMainThread(QString tempLogfile)
{
// Are we supposed to log?
if(toolbox()->settingsManager()->appSettings()->telemetrySave()->rawValue().toBool()) {
// The vehicle is gone now and we are shutting down so we need to use a message box for errors to hold shutdown and show the error
if (_checkTelemetrySavePath(true /* useMessageBox */)) {
......@@ -535,7 +533,6 @@ void QGCApplication::saveTelemetryLogOnMainThread(QString tempLogfile)
#endif
}
}
}
QFile::remove(tempLogfile);
}
......
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