[Pkg-owncloud-commits] [owncloud-client] 142/218: Settings: Add debug output #3820

Sandro Knauß hefee-guest at moszumanska.debian.org
Sat Oct 17 14:30:59 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 68947525a0bcceb6a97d99f78169da81aca50ef3
Author: Christian Kamm <mail at ckamm.de>
Date:   Thu Sep 17 13:48:05 2015 +0200

    Settings: Add debug output #3820
---
 src/gui/accountmanager.cpp | 7 ++++++-
 src/gui/folder.cpp         | 3 +++
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/gui/accountmanager.cpp b/src/gui/accountmanager.cpp
index 39b7367..28a0b78 100644
--- a/src/gui/accountmanager.cpp
+++ b/src/gui/accountmanager.cpp
@@ -130,6 +130,9 @@ void AccountManager::save(bool saveCredentials)
         save(acc->account(), *settings, saveCredentials);
         settings->endGroup();
     }
+
+    settings->sync();
+    qDebug() << "Saved all account settings, status:" << settings->status();
 }
 
 void AccountManager::wantsAccountSavedSlot(AccountPtr a)
@@ -139,6 +142,9 @@ void AccountManager::wantsAccountSavedSlot(AccountPtr a)
     settings->beginGroup(a->id());
     save(a, *settings, false); // don't save credentials they might not have been loaded yet
     settings->endGroup();
+
+    settings->sync();
+    qDebug() << "Saved account settings, status:" << settings->status();
 }
 
 void AccountManager::save(const AccountPtr& acc, QSettings& settings, bool saveCredentials)
@@ -161,7 +167,6 @@ void AccountManager::save(const AccountPtr& acc, QSettings& settings, bool saveC
         if (acc->_settingsMap.contains(httpUserC))
             settings.setValue(userC, acc->_settingsMap.value(httpUserC));
     }
-    settings.sync();
 
     // Save accepted certificates.
     settings.beginGroup(QLatin1String("General"));
diff --git a/src/gui/folder.cpp b/src/gui/folder.cpp
index d72c990..f88af09 100644
--- a/src/gui/folder.cpp
+++ b/src/gui/folder.cpp
@@ -693,6 +693,9 @@ void Folder::saveToSettings() const
     auto settings = _accountState->settings();
     settings->beginGroup(QLatin1String("Folders"));
     FolderDefinition::save(*settings, _definition);
+
+    settings->sync();
+    qDebug() << "Saved folder" << _definition.alias << "to settings, status" << settings->status();
 }
 
 void Folder::removeFromSettings() const

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list