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

Code cleanup

This commit is contained in:
Martin Tůma 2015-12-18 22:44:26 +01:00
parent 7ac94588c8
commit ba9319d7f6

View File

@ -4,7 +4,7 @@
#include "ll.h"
#include "config.h"
#include "map.h"
#include <QDebug>
Map::Map(const QString &name, const QString &url)
{
@ -14,10 +14,10 @@ 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;
qDebug() << path;
if (!QDir::home().mkpath(path))
fprintf(stderr, "Error creating tiles dir: %s\n", qPrintable(path));
}
void Map::emitLoaded()