From 1e57a790ee99ab31a87cde78bb2154342e0983b1 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 19 Jul 2016 04:23:06 +0200 Subject: compat/options: don't copy-paste config filename retrieval --- opentrack-compat/options.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'opentrack-compat/options.cpp') 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() -- cgit v1.2.3