Skip to content

Commit

Permalink
Do not show .. when in root directory
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewvogt committed Sep 22, 2016
1 parent 61cb955 commit ea123c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin/filemodel.cpp
Expand Up @@ -541,7 +541,7 @@ QDir FileModel::directory() const

if (m_includeDirectories) {
filters |= QDir::AllDirs;
if (!m_includeParentDirectory) {
if (!m_includeParentDirectory || dir.isRoot()) {
filters |= QDir::NoDotDot;
}
}
Expand Down

0 comments on commit ea123c3

Please sign in to comment.