Skip to content

Commit 11b1a39

Browse files
committed
Better debug function for export test
1 parent 8ec6871 commit 11b1a39

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/routeexport/routeexportformat.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*****************************************************************************
2-
* Copyright 2015-2024 Alexander Barthel alex@littlenavmap.org
2+
* Copyright 2015-2025 Alexander Barthel alex@littlenavmap.org
33
*
44
* This program is free software: you can redistribute it and/or modify
55
* it under the terms of the GNU General Public License as published by
@@ -56,10 +56,12 @@ void RouteExportFormatMap::setDebugOptions(rexp::RouteExportFormatType type)
5656
{
5757
RouteExportFormat& format = (*this)[type];
5858

59-
QString defaultPath = QDir::homePath() + "/Temp/Little Navmap Export";
59+
QString defaultPath = QDir::homePath() % atools::SEP % "Temp";
6060
QString path = Settings::instance().getAndStoreValue(lnm::OPTIONS_MULTIEXPORT_DEBUG_PATH, defaultPath).toString();
6161

62-
format.setPath(path + "/" + format.getCategory());
62+
format.setPath(path % atools::SEP %
63+
QCoreApplication::applicationName() % " " % QCoreApplication::applicationVersion() % atools::SEP +
64+
format.getCategory());
6365

6466
QDir().mkpath(format.getPath());
6567
format.setPattern(QFileInfo(format.getDefaultPattern()).baseName() + " " + format.getComment().replace("/", "-") +

0 commit comments

Comments
 (0)