diff --git a/src/gui/UBFeaturesWidget.cpp b/src/gui/UBFeaturesWidget.cpp index 348ea771..fe3520c7 100644 --- a/src/gui/UBFeaturesWidget.cpp +++ b/src/gui/UBFeaturesWidget.cpp @@ -1464,8 +1464,11 @@ bool UBFeaturesPathProxyModel::filterAcceptsRow( int sourceRow, const QModelInde { QModelIndex index = sourceModel()->index(sourceRow, 0, sourceParent); UBFeature feature = sourceModel()->data(index, Qt::UserRole + 1).value(); - - return feature.isFolder() && path.startsWith( feature.getFullVirtualPath()) ; + + // We want to display parent folders up to and including the current one + return (feature.isFolder() + && ( path.startsWith(feature.getFullVirtualPath() + "/") + || path == feature.getFullVirtualPath())); }