Browse Source

Only reset if file is open

QGC4.4
Don Gagne 11 years ago
parent
commit
e833fe467d
  1. 3
      src/ui/QGCMAVLinkLogPlayer.cc

3
src/ui/QGCMAVLinkLogPlayer.cc

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

Loading…
Cancel
Save