Change "AppDataLocation" to "DataLocation". "AppDataLocation" is wrong on Windows as our log directory is at "DataLocation".

This commit is contained in:
Uwe Risse 2023-03-17 12:02:41 +01:00
parent 491f783224
commit 9151861c6d
2 changed files with 2 additions and 2 deletions

View File

@ -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"),

View File

@ -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