diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-12-18 11:02:21 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-12-18 11:02:21 +0100 |
commit | 32089d201eaf9543246e6d9e3ee4f1761ca0735a (patch) | |
tree | 3b431f7fe7e8838957f2cdf6609c79ded2bc5b1a /src/sync/syncmanager.cpp | |
parent | Why taking risks? Deleting things in the more appropriate place. (diff) | |
download | rekonq-32089d201eaf9543246e6d9e3ee4f1761ca0735a.tar.xz |
Get sure synchandler exists before calling it
This should be important just on password sync, cause of code design.
Anyway, checking it everytime shouldn't be a bad idea...
BUG: 289146
Diffstat (limited to 'src/sync/syncmanager.cpp')
-rw-r--r-- | src/sync/syncmanager.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/sync/syncmanager.cpp b/src/sync/syncmanager.cpp index efd0ffd3..5766f418 100644 --- a/src/sync/syncmanager.cpp +++ b/src/sync/syncmanager.cpp @@ -114,17 +114,27 @@ void SyncManager::showSettings() void SyncManager::syncBookmarks() { - _syncImplementation.data()->syncBookmarks(); + if (!_syncImplementation.isNull()) + { + _syncImplementation.data()->syncBookmarks(); + } } void SyncManager::syncHistory() { - _syncImplementation.data()->syncHistory(); + if (!_syncImplementation.isNull()) + { + _syncImplementation.data()->syncHistory(); + } } void SyncManager::syncPasswords() { - _syncImplementation.data()->syncPasswords(); + if (!_syncImplementation.isNull()) + { + _syncImplementation.data()->syncPasswords(); + } } + |