From 9151861c6d75de47ba2f1bed505b653b495cb231 Mon Sep 17 00:00:00 2001 From: Uwe Risse Date: Fri, 17 Mar 2023 12:02:41 +0100 Subject: [PATCH] Change "AppDataLocation" to "DataLocation". "AppDataLocation" is wrong on Windows as our log directory is at "DataLocation". --- Configuration.cpp | 2 +- logbook/AD1CCty.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Configuration.cpp b/Configuration.cpp index aed2c5417..fd28e634d 100644 --- a/Configuration.cpp +++ b/Configuration.cpp @@ -2425,7 +2425,7 @@ void Configuration::impl::on_rescan_log_push_button_clicked (bool /*clicked*/) void Configuration::impl::on_CTY_download_button_clicked (bool /*clicked*/) { ui_->CTY_download_button->setEnabled (false); // disable button until download is complete - QDir dataPath {QStandardPaths::writableLocation (QStandardPaths::AppDataLocation)}; + QDir dataPath {QStandardPaths::writableLocation (QStandardPaths::DataLocation)}; cty_download.configure(network_manager_, "http://www.country-files.com/bigcty/cty.dat", dataPath.absoluteFilePath("cty.dat"), diff --git a/logbook/AD1CCty.cpp b/logbook/AD1CCty.cpp index 5b42b8a9f..526c6c8df 100644 --- a/logbook/AD1CCty.cpp +++ b/logbook/AD1CCty.cpp @@ -324,7 +324,7 @@ char const * AD1CCty::continent (Continent c) QString AD1CCty::impl::get_cty_path(Configuration const * configuration) { - QDir dataPath {QStandardPaths::writableLocation (QStandardPaths::AppDataLocation)}; + QDir dataPath {QStandardPaths::writableLocation (QStandardPaths::DataLocation)}; auto path = dataPath.exists (file_name) ? dataPath.absoluteFilePath (file_name) // user override : configuration->data_dir ().absoluteFilePath (file_name); // or original