diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-19 04:23:06 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-19 07:17:24 +0200 |
commit | 1e57a790ee99ab31a87cde78bb2154342e0983b1 (patch) | |
tree | c32f833113a4fa0ce4571d39b961105671c02aaf /opentrack-compat | |
parent | 6b30283846562cc43778670e730b8618207a719d (diff) |
compat/options: don't copy-paste config filename retrieval
Diffstat (limited to 'opentrack-compat')
-rw-r--r-- | opentrack-compat/options.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/opentrack-compat/options.cpp b/opentrack-compat/options.cpp index 7b2eaa2f..bfc95410 100644 --- a/opentrack-compat/options.cpp +++ b/opentrack-compat/options.cpp @@ -58,8 +58,7 @@ QString group::ini_pathname() const auto dir = ini_directory(); if (dir == "") return ""; - QSettings settings(OPENTRACK_ORG); - return dir + "/" + settings.value(OPENTRACK_CONFIG_FILENAME_KEY, OPENTRACK_DEFAULT_CONFIG).toString(); + return dir + "/" + ini_filename(); } const QStringList group::ini_list() |