Commit 32089d20 authored by Andrea Diamantini's avatar Andrea Diamantini
Browse files

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
parent 6f60d002
......@@ -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();
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment