1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-06-25 18:49:16 +02:00

Added recursive POI dir searching to be consistent with map dir searching

This commit is contained in:
2018-01-30 00:30:26 +01:00
parent e10f8e9c1b
commit 84d860e2a2
5 changed files with 68 additions and 31 deletions

View File

@ -82,6 +82,9 @@ bool MapList::loadFile(const QString &path, bool *atlas, bool dir)
bool MapList::loadFile(const QString &path)
{
bool atlas;
_errorString.clear();
return loadFile(path, &atlas, false);
}
@ -93,6 +96,8 @@ bool MapList::loadDir(const QString &path)
QFileInfoList ml = md.entryInfoList();
bool atlas, ret = true;
_errorString.clear();
for (int i = 0; i < ml.size(); i++) {
const QFileInfo &fi = ml.at(i);
QString suffix = fi.suffix().toLower();

View File

@ -25,7 +25,7 @@ private:
void map(QXmlStreamReader &reader);
QString _errorString;
Map* _map;
Map *_map;
};
#endif // MAPSOURCE_H