From 9754130ec86701b09c1c16636f22d29318d048d1 Mon Sep 17 00:00:00 2001 From: matlabbe Date: Thu, 4 Jun 2015 09:41:57 -0400 Subject: [PATCH] ignore ".." and "." subdirectories --- src/MainWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 0dfe94aa..1c65ca94 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -535,7 +535,7 @@ void MainWindow::loadObjects() { QDir d(dirPath); bool recursive = false; - if(d.entryList(QDir::AllDirs).size()) + if(d.entryList(QDir::AllDirs | QDir::NoDotAndDotDot).size()) { QMessageBox::StandardButton b = QMessageBox::question( this,