mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 11:45:53 +01:00
Code cleanup
This commit is contained in:
parent
22b84cc6cd
commit
4d10a8d5d5
@ -14,10 +14,9 @@ Map::Map(const QString &name, const QString &url)
|
|||||||
connect(&Downloader::instance(), SIGNAL(finished()), this,
|
connect(&Downloader::instance(), SIGNAL(finished()), this,
|
||||||
SLOT(emitLoaded()));
|
SLOT(emitLoaded()));
|
||||||
|
|
||||||
if (!QDir::home().mkpath(QString(TILES_DIR"/%1").arg(_name)))
|
QString path = QString(TILES_DIR"/") + _name;
|
||||||
fprintf(stderr, "Error creating tiles dir: %s\n",
|
if (!QDir::home().mkpath(path))
|
||||||
qPrintable(QDir::home().absolutePath() + QString("/"TILES_DIR"/%1")
|
fprintf(stderr, "Error creating tiles dir: %s\n", qPrintable(path));
|
||||||
.arg(_name)));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Map::emitLoaded()
|
void Map::emitLoaded()
|
||||||
|
Loading…
Reference in New Issue
Block a user