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:
@ -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();
|
||||
|
@ -25,7 +25,7 @@ private:
|
||||
void map(QXmlStreamReader &reader);
|
||||
|
||||
QString _errorString;
|
||||
Map* _map;
|
||||
Map *_map;
|
||||
};
|
||||
|
||||
#endif // MAPSOURCE_H
|
||||
|
Reference in New Issue
Block a user