GUI: More strict filtering for finding project file.

This commit is contained in:
Kimmo Varis 2011-06-07 23:56:48 +03:00
parent 8bfbf82bdc
commit f12b27f360
1 changed files with 1 additions and 0 deletions

View File

@ -366,6 +366,7 @@ void MainWindow::CheckDirectory()
QDir checkDir(dir[0]); QDir checkDir(dir[0]);
QStringList filters; QStringList filters;
filters << "*.cppcheck"; filters << "*.cppcheck";
checkDir.setFilter(QDir::Files | QDir::Readable);
checkDir.setNameFilters(filters); checkDir.setNameFilters(filters);
QStringList projFiles = checkDir.entryList(); QStringList projFiles = checkDir.entryList();
if (!projFiles.empty()) if (!projFiles.empty())