diff --git a/src/data/data.cpp b/src/data/data.cpp index 7559bec9..5d513feb 100644 --- a/src/data/data.cpp +++ b/src/data/data.cpp @@ -1,6 +1,7 @@ #include #include #include +#include "common/util.h" #include "gpxparser.h" #include "tcxparser.h" #include "csvparser.h" @@ -94,7 +95,7 @@ void Data::processData(QList &trackData, QList &routeData) Data::Data(const QString &fileName, bool tryUnknown) { QFile file(fileName); - QFileInfo fi(fileName); + QFileInfo fi(Util::displayName(fileName)); QList trackData; QList routeData; diff --git a/src/map/maplist.cpp b/src/map/maplist.cpp index fd684937..fec2aa93 100644 --- a/src/map/maplist.cpp +++ b/src/map/maplist.cpp @@ -65,7 +65,7 @@ MapList::ParserMap MapList::_parsers = parsers(); Map *MapList::loadFile(const QString &path, bool *isDir) { ParserMap::iterator it; - QFileInfo fi(path); + QFileInfo fi(Util::displayName(path)); QString suffix(fi.completeSuffix().toLower()); Map *map = 0; QStringList errors;