From 6b15b7e50e5f44964551aff8ccd86fff3dd09d39 Mon Sep 17 00:00:00 2001 From: Alejandro Martinez Date: Sun, 25 Sep 2022 19:54:18 -0300 Subject: [PATCH] kml files are not supported for import Just as output files for Google Earth et. al. Fixes #4271 --- src/FileIO/KmlRideFile.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/FileIO/KmlRideFile.h b/src/FileIO/KmlRideFile.h index 891cfca93..fd40b8ca2 100644 --- a/src/FileIO/KmlRideFile.h +++ b/src/FileIO/KmlRideFile.h @@ -23,7 +23,10 @@ #include "RideFile.h" struct KmlFileReader : public RideFileReader { - virtual RideFile *openRideFile(QFile &, QStringList &, QList* =0) const { return NULL; } // does not support reading + virtual RideFile *openRideFile(QFile &, QStringList &errors, QList* =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; } };