Commit e833fe46 authored by Don Gagne's avatar Don Gagne

Only reset if file is open

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