Commit 6a78fc91 authored by Dennis Nienhüser's avatar Dennis Nienhüser
Browse files

Avoid file/dir name clashes when using local files

(cherry picked from commit 19c19e20)
parent fdac3b5b
......@@ -214,7 +214,7 @@ int main(int argc, char *argv[])
}
} else {
QString const region = QFileInfo(inputFileName).fileName();
QString const regionDir = QString("%1/%2").arg(cacheDirectory).arg(region);
QString const regionDir = QString("%1/%2").arg(cacheDirectory).arg(QFileInfo(inputFileName).baseName());
TileDirectory mapTiles(TileDirectory::OpenStreetMap, regionDir, manager, extension, maxZoomLevel);
mapTiles.setInputFile(inputFileName);
mapTiles.createTiles();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment