1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-30 22:51:16 +01:00

Do not try to open the user style file when it is not set

This commit is contained in:
Martin Tůma 2020-02-14 20:00:42 +01:00
parent 8c7050e273
commit ce043ef8fa

View File

@ -104,8 +104,12 @@ void MapData::load()
if (_typ)
_style = new Style(_typ);
else {
SubFile typ(ProgramPaths::typFile());
QString typFile(ProgramPaths::typFile());
if (!typFile.isEmpty()) {
SubFile typ(typFile);
_style = new Style(&typ);
} else
_style = new Style();
}
}