Fix issue with kdev-cppcheck selecting wrong project

Authored by parolanilsson on Mar 12 2016, 12:38 AM.

Description

Fix issue with kdev-cppcheck selecting wrong project

Summary:
When When encountering a file with an issue the program iterates through available projects to try to find which project the file is part of.

As implemented, the last project in project list is selected.

Fix this with a proper test inside loop and exit on success.

Reviewers: kfunk

Subscribers: kdevelop-devel

Differential Revision: https://phabricator.kde.org/D1116

Details