diff options
| author | Felix (xq) Queißner <git@mq32.de> | 2020-06-29 22:03:56 +0200 |
|---|---|---|
| committer | Felix (xq) Queißner <git@mq32.de> | 2020-06-29 22:03:56 +0200 |
| commit | b65fac29aeaceb6bf8bf9df7a852cdd4a8b651c8 (patch) | |
| tree | 60a9a12cad1b2a5a213ca511fa30938e24c7769a /src/main.cpp | |
| parent | 8e910f26a28b1b1beae363e6c19f39224f74e2e8 (diff) | |
| download | kristall-b65fac29aeaceb6bf8bf9df7a852cdd4a8b651c8.tar.gz | |
Adds basic editing for favourite groups
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 09a6a7c..9be807e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -147,7 +147,7 @@ int main(int argc, char *argv[]) app_settings.endGroup(); } - // deprecated_settings.setValue("deprecated", true); + deprecated_settings.setValue("deprecated", true); } else { @@ -159,6 +159,7 @@ int main(int argc, char *argv[]) // Migrate to new favourites format if(int len = app_settings.beginReadArray("favourites"); len > 0) { + qDebug() << "Migrating old-style favourites..."; std::vector<Favourite> favs; favs.reserve(len); @@ -332,7 +333,9 @@ void kristall::saveSettings() assert(app_settings_ptr != nullptr); QSettings & app_settings = *app_settings_ptr; + app_settings.beginGroup("Favourites"); kristall::favourites.save(app_settings); + app_settings.endGroup(); app_settings.beginGroup("Protocols"); kristall::protocols.save(app_settings); |
