summaryrefslogtreecommitdiffhomepage
path: root/options
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-02-03 12:53:31 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-02-09 12:13:27 +0100
commit6325d311627a8288693331d16069fd16c5fac6c6 (patch)
tree8a8c31687035aa4895c9a3e85877544f3e8d71d7 /options
parentf5662b59896917512f0d4e5f1e853ba6c6b20d38 (diff)
use consistent naming for `profile'
Diffstat (limited to 'options')
-rw-r--r--options/defs.hpp9
-rw-r--r--options/globals.cpp4
2 files changed, 4 insertions, 9 deletions
diff --git a/options/defs.hpp b/options/defs.hpp
index a71a56e2..9ea4f3b3 100644
--- a/options/defs.hpp
+++ b/options/defs.hpp
@@ -1,11 +1,6 @@
#pragma once
-#include "compat/macros.hpp"
-
-#include <QString>
-#include <QMetaType>
-
-#define OPENTRACK_CONFIG_FILENAME_KEY "settings-filename"
-#define OPENTRACK_DEFAULT_CONFIG "default.ini"
+#define OPENTRACK_PROFILE_FILENAME_KEY "settings-filename"
+#define OPENTRACK_DEFAULT_PROFILE "default.ini"
diff --git a/options/globals.cpp b/options/globals.cpp
index dbc6df90..5f1bda67 100644
--- a/options/globals.cpp
+++ b/options/globals.cpp
@@ -105,9 +105,9 @@ bool is_ini_modified()
QString ini_filename()
{
return with_global_settings_object([&](QSettings& settings) {
- const QString ret = settings.value(OPENTRACK_CONFIG_FILENAME_KEY, OPENTRACK_DEFAULT_CONFIG).toString();
+ const QString ret = settings.value(OPENTRACK_PROFILE_FILENAME_KEY, OPENTRACK_DEFAULT_PROFILE).toString();
if (ret.size() == 0)
- return QStringLiteral(OPENTRACK_DEFAULT_CONFIG);
+ return QStringLiteral(OPENTRACK_DEFAULT_PROFILE);
return ret;
});
}