From 32089d201eaf9543246e6d9e3ee4f1761ca0735a Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 18 Dec 2011 11:02:21 +0100 Subject: 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 --- src/sync/syncmanager.cpp | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'src/sync') 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(); + } } + -- cgit v1.2.1