summaryrefslogtreecommitdiffstats
path: root/src/server/util
diff options
context:
space:
mode:
authorChristian Klinger2016-09-12 13:09:15 +0200
committerChristian Klinger2016-09-12 13:09:15 +0200
commit211bed049d7073ea95789eeedc483541f8a85b2c (patch)
tree57068ba430f7c5f218777597192bc81fcbe06ea1 /src/server/util
parentMerge branch 'master' of git.openslx.org:pvs2 (diff)
downloadpvs2-211bed049d7073ea95789eeedc483541f8a85b2c.tar.gz
pvs2-211bed049d7073ea95789eeedc483541f8a85b2c.tar.xz
pvs2-211bed049d7073ea95789eeedc483541f8a85b2c.zip
removed USER_SETTINGS etc.
(this also changes filename of the crt ans rsa files, but this shouldn't be a problem. (formerly the name of those files depended on the name and location of the ini-files)
Diffstat (limited to 'src/server/util')
-rw-r--r--src/server/util/util.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/server/util/util.h b/src/server/util/util.h
index 98a56b6..dfb70b4 100644
--- a/src/server/util/util.h
+++ b/src/server/util/util.h
@@ -4,13 +4,11 @@
// Helper for getting a settings object in various places, so if you ever change the organization, location,
// file format or anything, you won't have to edit in 100 places.
// Use like this:
-// USER_SETTINGS(settings)
// settings.value("somekey")
-#define USER_SETTINGS(name) \
- QSettings name (QSettings::IniFormat, QSettings::UserScope, "openslx/pvs2", "pvs2"); \
- name.setIniCodec("UTF-8");
-#define SYSTEM_SETTINGS(name) \
+#define CERTSTORAGE ".config/openslx/pvs2/"
+
+#define SETTINGS(name) \
QSettings name (QSettings::IniFormat, QSettings::SystemScope, "openslx/pvs2", "pvs2"); \
name.setIniCodec("UTF-8");