summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/qml/qdeclarativetypeloader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativetypeloader.cpp b/src/declarative/qml/qdeclarativetypeloader.cpp
index 833fad67d4..b92883ec68 100644
--- a/src/declarative/qml/qdeclarativetypeloader.cpp
+++ b/src/declarative/qml/qdeclarativetypeloader.cpp
@@ -61,7 +61,7 @@ is responsible for deleting the returned data.
*/
static QSet<QString> *qmlFilesInDirectory(const QString &path)
{
- QDirIterator dir(path, QDir::Files);
+ QDirIterator dir(path, QDir::Files | QDir::NoDotAndDotDot);
if (!dir.hasNext())
return 0;
QSet<QString> *files = new QSet<QString>;