fix the problem with replay routes locally (#24350)

fix: fix the problem with replay routes locally

Co-authored-by: Anton Rudomaneko <anton.rudomanenko@nami.ru>
old-commit-hash: 3bfe4a691c
taco
Anton Rudomanenko 3 years ago committed by GitHub
parent 6059fe131b
commit f69d9c7326
  1. 6
      selfdrive/ui/replay/route.cc

@ -77,7 +77,11 @@ bool Route::loadFromLocal() {
}
void Route::addFileToSegment(int n, const QString &file) {
const QString name = QUrl(file).fileName();
QString name = QUrl(file).fileName();
const int pos = name.lastIndexOf("--");
name = pos != -1 ? name.mid(pos + 2) : name;
if (name == "rlog.bz2") {
segments_[n].rlog = file;
} else if (name == "qlog.bz2") {

Loading…
Cancel
Save