This commit is contained in:
Yann Salmon 2023-08-07 12:43:14 +02:00 committed by Martin Marmsoler
parent c985a5d1ce
commit bd09d302b8

View File

@ -57,7 +57,7 @@ void RecentRepositories::add(QString gitpath) {
RecentRepository *repo = new RecentRepository(gitpath, this);
auto it = std::remove_if(mRepos.begin(), end, [repo](RecentRepository *rhs) {
#ifdef Q_OS_WIN
return repo - gitpath().compare(rhs->gitpath(), Qt::CaseInsensitive) == 0;
return repo->gitpath().compare(rhs->gitpath(), Qt::CaseInsensitive) == 0;
#else
return (repo->gitpath() == rhs->gitpath());
#endif