diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 3603e5d2b..7feb87256 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -366,6 +366,7 @@ void MainWindow::CheckDirectory() QDir checkDir(dir[0]); QStringList filters; filters << "*.cppcheck"; + checkDir.setFilter(QDir::Files | QDir::Readable); checkDir.setNameFilters(filters); QStringList projFiles = checkDir.entryList(); if (!projFiles.empty())