mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-03-22 12:08:43 -04:00
Change "AppDataLocation" to "DataLocation". "AppDataLocation" is wrong on Windows as our log directory is at "DataLocation".
This commit is contained in:
parent
491f783224
commit
9151861c6d
@ -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"),
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user