From bc05de00dc97c7884085a172e0e51063b58bcf54 Mon Sep 17 00:00:00 2001 From: PeterPetrik Date: Wed, 4 Oct 2023 09:48:45 +0200 Subject: [PATCH] fix user warning --- core/merginapi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/merginapi.cpp b/core/merginapi.cpp index 7d7688c4a..799aa1fc9 100644 --- a/core/merginapi.cpp +++ b/core/merginapi.cpp @@ -219,7 +219,7 @@ QString MerginApi::listProjectsByName( const QStringList &projectNames ) { CoreUtils::log( "list projects by name", QStringLiteral( "Too many local projects: " ) + QString::number( projectNames.count(), 'f', 0 ) ); const int projectsToRemoveCount = projectNames.count() - listProjectsByNameApiLimit; - QString msg = tr( "Please remove some projects as the app currently\nonly allows up to %1 downloaded projects." ).arg( projectsToRemoveCount ); + QString msg = tr( "Please remove some projects as the app currently\nonly allows up to %1 downloaded projects." ).arg( listProjectsByNameApiLimit ); notify( msg ); projectNamesToRequest.erase( projectNamesToRequest.begin() + listProjectsByNameApiLimit, projectNamesToRequest.end() ); Q_ASSERT( projectNamesToRequest.count() == listProjectsByNameApiLimit );