diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-16 17:39:15 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-16 17:54:12 +0200 |
commit | af8d6f769c26d4d260d6fc430165b51aebbd0733 (patch) | |
tree | 2129d44b18bc919b339d7bfd9de9da6b3c921669 /options/group.hpp | |
parent | a781170550b4354e0f5551e0b20560d84e4108ce (diff) |
gui/main-window: exit program when config not writable
Note, it opens the config in read-write mode to check if it's
writable. This might present a race condition when config is
saved.
However, we're expecting all config saving to be done in the
user interface thread. Add a check for it however.
Diffstat (limited to 'options/group.hpp')
-rw-r--r-- | options/group.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/options/group.hpp b/options/group.hpp index f5b3e523..82b508af 100644 --- a/options/group.hpp +++ b/options/group.hpp @@ -26,6 +26,7 @@ public: static QString ini_directory(); static QString ini_filename(); static QString ini_pathname(); + static QString ini_combine(const QString& filename); static QStringList ini_list(); static std::shared_ptr<QSettings> ini_file(); |