Skip to content

Commit

Permalink
[buteo-sync-plugins-social] Use minor code on error signal. Contribut…
Browse files Browse the repository at this point in the history
…es to JB#31584

Api was changed to use enum type instead of vague int. Seems like this
was mixing up the enums.
  • Loading branch information
pvuorela committed Apr 9, 2021
1 parent 8c49e96 commit c60b9c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/socialdbuteoplugin.cpp
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit c60b9c7

Please sign in to comment.