GUI: More strict filtering for finding project file.
This commit is contained in:
parent
8bfbf82bdc
commit
f12b27f360
|
@ -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())
|
||||||
|
|
Loading…
Reference in New Issue