1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 03:35:53 +01:00

Do not load icons from the current directory when no symbols dir is set

This commit is contained in:
Martin Tůma 2022-01-03 23:20:58 +01:00
parent c062a62014
commit 40616fb868

View File

@ -27,6 +27,9 @@ QPair<qreal, qreal> Waypoint::elevations() const
void Waypoint::loadSymbolIcons(const QString &dir)
{
if (dir.isEmpty())
return;
QDir d(dir);
QFileInfoList files(d.entryInfoList(QDir::Files | QDir::Readable));