ignore ".." and "." subdirectories

This commit is contained in:
matlabbe 2015-06-04 09:41:57 -04:00
parent 76b6ff4b7e
commit 9754130ec8

View File

@ -535,7 +535,7 @@ void MainWindow::loadObjects()
{ {
QDir d(dirPath); QDir d(dirPath);
bool recursive = false; bool recursive = false;
if(d.entryList(QDir::AllDirs).size()) if(d.entryList(QDir::AllDirs | QDir::NoDotAndDotDot).size())
{ {
QMessageBox::StandardButton b = QMessageBox::question( QMessageBox::StandardButton b = QMessageBox::question(
this, this,