diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-12-26 14:16:00 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-12-26 14:16:00 +0100 |
commit | 12e81eb57b0da49dbcd2f823dbf156ee24a802f2 (patch) | |
tree | bb15985f9d284a838adcdefd91a5861c78eed08d /src/main.cpp | |
parent | Updated pre-commit hook (diff) | |
download | smolbote-12e81eb57b0da49dbcd2f823dbf156ee24a802f2.tar.xz |
SettingsDialog patches
- Added scrollbar, so items are now properly viewable on all sizes
- Reset button now works
- Editing values causes a crash
- Filter path is now in filter.path instead of browser.filterPath
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 3483da7..23dfa68 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -40,6 +40,10 @@ bool writeUserConfig(const std::string &path, Configuration &config) // The .path's need to be overriden because ~ doesn't translate to home const QString &home = QStandardPaths::writableLocation(QStandardPaths::HomeLocation); + // filter.path + std::string filterPath = config.value<std::string>("filter.path").value(); + config.setValue<std::string>("filter.path", patchHome(filterPath, home.toStdString())); + // profile.path std::string profilePath = config.value<std::string>("profile.path").value(); config.setValue<std::string>("profile.path", patchHome(profilePath, home.toStdString())); |