From f12b27f3606ba418fbbd351735f5d3493d20cbc3 Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Tue, 7 Jun 2011 23:56:48 +0300 Subject: [PATCH] GUI: More strict filtering for finding project file. --- gui/mainwindow.cpp | 1 + 1 file changed, 1 insertion(+) 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())