summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-12-18 11:02:21 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-12-18 11:02:21 +0100
commit32089d201eaf9543246e6d9e3ee4f1761ca0735a (patch)
tree3b431f7fe7e8838957f2cdf6609c79ded2bc5b1a
parentWhy taking risks? Deleting things in the more appropriate place. (diff)
downloadrekonq-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
-rw-r--r--src/sync/syncmanager.cpp16
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();
+ }
}
+