Skip to content

Commit

Permalink
Merge branch 'error_api' into 'master'
Browse files Browse the repository at this point in the history
[buteo-sync-plugins-email] Use minor code on error api. Contributes to JB#31584

See merge request mer-core/buteo-sync-plugins-email!9
  • Loading branch information
pvuorela committed Apr 9, 2021
2 parents f3c1546 + 261d38c commit 182c50e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/syncemailclient.cpp
Expand Up @@ -125,7 +125,7 @@ void SyncEmailClient::cancelSync()
m_emailAgent->cancelAll();
updateResults(Buteo::SyncResults(QDateTime::currentDateTime(), Buteo::SyncResults::SYNC_RESULT_FAILED,
Buteo::SyncResults::ABORTED));
emit error(getProfileName(), "Sync failed", Buteo::SyncResults::SYNC_RESULT_FAILED);
emit error(getProfileName(), "Sync failed", Buteo::SyncResults::ABORTED);
}

void SyncEmailClient::ipcConnected()
Expand Down Expand Up @@ -154,5 +154,5 @@ void SyncEmailClient::ipcTimeout()
{
qWarning() << Q_FUNC_INFO << "IPC connection timeout, abording...";
updateResults(Buteo::SyncResults(QDateTime::currentDateTime(), Buteo::SyncResults::SYNC_RESULT_FAILED, Buteo::SyncResults::ABORTED));
emit error(getProfileName(), "Sync failed", Buteo::SyncResults::SYNC_RESULT_FAILED);
emit error(getProfileName(), "Sync failed", Buteo::SyncResults::ABORTED);
}

0 comments on commit 182c50e

Please sign in to comment.