MAke sure removeDuplicates() is called for list containing file to be

updated.
This commit is contained in:
Gerhard Hoffmann 2023-10-31 09:16:24 +01:00
parent a24eb9fd8c
commit 721c5dd7a5

View File

@ -638,13 +638,13 @@ bool Worker::filesToUpdate() {
m_filesToUpdate << changedFileNames.value(); m_filesToUpdate << changedFileNames.value();
} }
} }
GUI() << (CONSOLE(m_filesToUpdate) << UPDATE_STEP::FILES_TO_UPDATE); m_filesToUpdate.removeDuplicates();
GUI(m_filesToUpdate) << (CONSOLE(m_filesToUpdate) << UPDATE_STEP::FILES_TO_UPDATE);
} else { } else {
ISMAS() << (GUI() << (CONSOLE() << UPDATE_STEP::UPDATE_REPOSITORY_FAILURE)); ISMAS() << (GUI() << (CONSOLE() << UPDATE_STEP::UPDATE_REPOSITORY_FAILURE));
return false; return false;
} }
m_filesToUpdate.removeDuplicates();
return true; return true;
} }