Commit 2ce891c1 authored by Volker Krause's avatar Volker Krause Committed by Torsten Rahn
Browse files

Fix file extension check for o5m files

This fixes loading o5m files with an extra dot in their name.
parent f32611d6
......@@ -37,7 +37,7 @@ GeoDataDocument *OsmParser::parse(const QString &filename, QString &error)
return nullptr;
if (fileInfo.completeSuffix() == QLatin1String("o5m")) {
if (fileInfo.suffix() == QLatin1String("o5m")) {
return parseO5m(filename, error);
} else {
return parseXml(filename, error);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment