Skip to content

Commit

Permalink
Better debug function for export test
Browse files Browse the repository at this point in the history
  • Loading branch information
albar965 committed Jan 13, 2025
1 parent 8ec6871 commit 11b1a39
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/routeexport/routeexportformat.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*****************************************************************************
* Copyright 2015-2024 Alexander Barthel [email protected]
* Copyright 2015-2025 Alexander Barthel [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -56,10 +56,12 @@ void RouteExportFormatMap::setDebugOptions(rexp::RouteExportFormatType type)
{
RouteExportFormat& format = (*this)[type];

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

format.setPath(path + "/" + format.getCategory());
format.setPath(path % atools::SEP %
QCoreApplication::applicationName() % " " % QCoreApplication::applicationVersion() % atools::SEP +
format.getCategory());

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

0 comments on commit 11b1a39

Please sign in to comment.