summaryrefslogtreecommitdiffhomepage
path: root/opentrack/options.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-08-26 19:53:40 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-08-27 09:37:13 +0200
commit8adcd7acc7280c84a959db0da2d79a0ed918a1ca (patch)
treef52b9356352d83475378cbc91d7037e5a84a53ec /opentrack/options.hpp
parent4b9e2b009fbc290d5108b8a83010dcbf2c5841e2 (diff)
options: return .ini basename easier
Diffstat (limited to 'opentrack/options.hpp')
-rw-r--r--opentrack/options.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/opentrack/options.hpp b/opentrack/options.hpp
index 8e623092..f8475877 100644
--- a/opentrack/options.hpp
+++ b/opentrack/options.hpp
@@ -143,6 +143,12 @@ namespace options {
return "";
}
+ static QString ini_filename()
+ {
+ QSettings settings(OPENTRACK_ORG);
+ return settings.value(OPENTRACK_CONFIG_FILENAME_KEY, OPENTRACK_DEFAULT_CONFIG).toString();
+ }
+
static QString ini_pathname()
{
const auto dir = ini_directory();