diff --git a/app/qml/main.qml b/app/qml/main.qml index 0ec6e33eb..c81b01926 100644 --- a/app/qml/main.qml +++ b/app/qml/main.qml @@ -867,6 +867,9 @@ ApplicationWindow { // just banner that we will try again __notificationModel.addInfo( qsTr( "Somebody else is syncing, we will try again later" ) ) } + else if ( errorType === MM.SyncError.MonthlyContributorsLimitHit){ + monthlyContributorsLimitDialog.open() + } else { syncFailedDialog.detailedText = qsTr( "Details" ) + ": " + errorMessage @@ -882,10 +885,6 @@ ApplicationWindow { } } } - - function onMonthlyContributorsLimitReached( uploadSize ) { - monthlyContributorsLimitDialog.open() - } } Connections { diff --git a/app/synchronizationmanager.cpp b/app/synchronizationmanager.cpp index aee84baef..100040040 100644 --- a/app/synchronizationmanager.cpp +++ b/app/synchronizationmanager.cpp @@ -286,10 +286,6 @@ void SynchronizationManager::onProjectSyncFailure( } else { - if ( error == SynchronizationError::MonthlyContributorsLimitHit ) - { - emit monthlyContributorsLimitReached( "" ); - } mSyncProcesses.remove( projectFullName ); emit syncFinished( projectFullName, false, -1, false ); diff --git a/app/synchronizationmanager.h b/app/synchronizationmanager.h index 62cab4496..ba3d02448 100644 --- a/app/synchronizationmanager.h +++ b/app/synchronizationmanager.h @@ -64,7 +64,6 @@ class SynchronizationManager : public QObject void syncFinished( const QString &projectFullName, bool success, int newVersion, bool reloadNeeded ); void syncError( const QString &projectFullName, int errorType, bool willRetry = false, const QString &errorMessage = QLatin1String() ); - void monthlyContributorsLimitReached( const QString &message ); public slots: