mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
parent
ba9319d7f6
commit
22b84cc6cd
10
src/map.cpp
10
src/map.cpp
@ -4,7 +4,7 @@
|
|||||||
#include "ll.h"
|
#include "ll.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "map.h"
|
#include "map.h"
|
||||||
#include <QDebug>
|
|
||||||
|
|
||||||
Map::Map(const QString &name, const QString &url)
|
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,
|
connect(&Downloader::instance(), SIGNAL(finished()), this,
|
||||||
SLOT(emitLoaded()));
|
SLOT(emitLoaded()));
|
||||||
|
|
||||||
QString path = QString(TILES_DIR"/") + _name;
|
if (!QDir::home().mkpath(QString(TILES_DIR"/%1").arg(_name)))
|
||||||
qDebug() << path;
|
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