mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-01-19 04:02:09 +01:00
Do not try to load the style when it does not exist
This commit is contained in:
parent
873db27768
commit
152f17f15a
@ -1,3 +1,4 @@
|
||||
#include <QFileInfo>
|
||||
#include "common/programpaths.h"
|
||||
#include "vectortile.h"
|
||||
#include "style.h"
|
||||
@ -76,7 +77,7 @@ void MapData::load()
|
||||
_style = new Style(_typ);
|
||||
else {
|
||||
QString typFile(ProgramPaths::typFile());
|
||||
if (!typFile.isEmpty()) {
|
||||
if (QFileInfo::exists(typFile)) {
|
||||
SubFile typ(&typFile);
|
||||
_style = new Style(&typ);
|
||||
} else
|
||||
|
Loading…
x
Reference in New Issue
Block a user