Skip to content

Commit

Permalink
kml files are not supported for import
Browse files Browse the repository at this point in the history
Just as output files for Google Earth et. al.
Fixes #4271
  • Loading branch information
amtriathlon committed Sep 25, 2022
1 parent 7b64448 commit 6b15b7e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/FileIO/KmlRideFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
#include "RideFile.h"

struct KmlFileReader : public RideFileReader {
virtual RideFile *openRideFile(QFile &, QStringList &, QList<RideFile*>* =0) const { return NULL; } // does not support reading
virtual RideFile *openRideFile(QFile &, QStringList &errors, QList<RideFile*>* =0) const {
errors << QString("kml files are not supported for import"); // does not support reading
return NULL;
}
bool writeRideFile(Context *, const RideFile *ride, QFile &file) const;
bool hasWrite() const { return true; }
};
Expand Down

0 comments on commit 6b15b7e

Please sign in to comment.