From 06205470fe2546dc6ccca6cbcd9a558221af42bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sun, 14 Jan 2018 23:46:39 +0100 Subject: [PATCH] Fixed broken online map lists loading --- src/map/maplist.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/map/maplist.cpp b/src/map/maplist.cpp index 31a3cadf..dcd65e71 100644 --- a/src/map/maplist.cpp +++ b/src/map/maplist.cpp @@ -97,10 +97,17 @@ bool MapList::loadAtlas(const QString &path) bool MapList::loadFile(const QString &path, bool *atlas) { + QFileInfo fi(path); + QString suffix = fi.suffix().toLower(); + if (Atlas::isAtlas(path)) { if (atlas) *atlas = true; return loadAtlas(path); + } else if (suffix == "txt") { + if (atlas) + *atlas = false; + return loadList(path); } else { if (atlas) *atlas = false;