1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-27 21:24:47 +01:00

Code cleanup

This commit is contained in:
Martin Tůma 2015-12-18 22:50:28 +01:00
parent 22b84cc6cd
commit 4d10a8d5d5

View File

@ -14,10 +14,9 @@ Map::Map(const QString &name, const QString &url)
connect(&Downloader::instance(), SIGNAL(finished()), this,
SLOT(emitLoaded()));
if (!QDir::home().mkpath(QString(TILES_DIR"/%1").arg(_name)))
fprintf(stderr, "Error creating tiles dir: %s\n",
qPrintable(QDir::home().absolutePath() + QString("/"TILES_DIR"/%1")
.arg(_name)));
QString path = QString(TILES_DIR"/") + _name;
if (!QDir::home().mkpath(path))
fprintf(stderr, "Error creating tiles dir: %s\n", qPrintable(path));
}
void Map::emitLoaded()