summaryrefslogtreecommitdiff
path: root/src/settings.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings.h')
-rw-r--r--src/settings.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/settings.h b/src/settings.h
index df081c5c..689067d7 100644
--- a/src/settings.h
+++ b/src/settings.h
@@ -693,7 +693,15 @@ public:
Settings(const QString& path, bool globalInstance=false);
~Settings();
- static Settings &instance();
+
+ // throws if there is no global Settings instance
+ //
+ static Settings& instance();
+
+ // returns null if there is no global Settings instance
+ //
+ static Settings* maybeInstance();
+
// name of the ini file
//