Commit c60b9c76 authored by pvuorela's avatar pvuorela

[buteo-sync-plugins-social] Use minor code on error signal. Contributes to JB#31584

Api was changed to use enum type instead of vague int. Seems like this
was mixing up the enums.
parent 8c49e969
......@@ -236,11 +236,11 @@ void SocialdButeoPlugin::syncStatusChanged()
emit success(getProfileName(), QString("%1 update succeeded").arg(getProfileName()));
} else if (syncStatus != SocialNetworkSyncAdaptor::Busy) {
updateResults(Buteo::SyncResults(QDateTime::currentDateTime(), Buteo::SyncResults::SYNC_RESULT_FAILED, Buteo::SyncResults::ABORTED));
emit error(getProfileName(), QString("%1 update failed").arg(getProfileName()), Buteo::SyncResults::SYNC_RESULT_FAILED);
emit error(getProfileName(), QString("%1 update failed").arg(getProfileName()), Buteo::SyncResults::ABORTED);
}
} else {
updateResults(Buteo::SyncResults(QDateTime::currentDateTime(), Buteo::SyncResults::SYNC_RESULT_FAILED, Buteo::SyncResults::ABORTED));
emit error(getProfileName(), QString("%1 update failed").arg(getProfileName()), Buteo::SyncResults::SYNC_RESULT_FAILED);
emit error(getProfileName(), QString("%1 update failed").arg(getProfileName()), Buteo::SyncResults::ABORTED);
}
}
......
Markdown is supported
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