Commit e833fe46 authored by Don Gagne's avatar Don Gagne

Only reset if file is open

parent 38ccebd3
#include <QMessageBox>
#include <QStandardPaths> #include <QStandardPaths>
#include <QtEndian> #include <QtEndian>
...@@ -136,7 +135,9 @@ void QGCMAVLinkLogPlayer::reset() ...@@ -136,7 +135,9 @@ void QGCMAVLinkLogPlayer::reset()
{ {
pause(); pause();
loopCounter = 0; loopCounter = 0;
logFile.reset(); if (logFile.isOpen()) {
logFile.reset();
}
// Now update the position slider to its default location // Now update the position slider to its default location
updatePositionSliderUi(0.0); updatePositionSliderUi(0.0);
......
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