https://bugs.kde.org/show_bug.cgi?id=525946
Bug ID: 525946
Summary: KDEPlatformFileDialogHelper forcibly sets DetailTree
in directory mode ignoring user's View Style
Classification: Plasma
Product: plasma-integration
Version First 6.7.5
Reported In:
Platform: CachyOS
OS: Linux
Status: REPORTED
Severity: wishlist
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
In kdeplatformfiledialoghelper.cpp (lines 305-315):
https://invent.kde.org/plasma/plasma-integration/-/blob/master/qt6/src/platformtheme/kdeplatformfiledialoghelper.cpp#L305-315
#####
if (directoryMode) {
// We want to always have detail tree view in folder mode
dialog->m_fileWidget->setViewMode(KFile::DetailTree);
// If we're in directory mode, set the filters to directory and disable
the filterWidget
// so it cant be accidentally changed, and to tell the user it's in
directory only mode
dialog->m_fileWidget->setFilters({KFileFilter::fromMimeType(QStringLiteral("inode/directory"))});
dialog->m_fileWidget->filterWidget()->setDisabled(true);
} else {
// Default icon view for files and such
dialog->m_fileWidget->setViewMode(KFile::Default);
}
#####
Could this be changed to respect KFile::Default / user configuration, or
remember the user's last chosen view mode instead of hardcoding DetailTree?
System details:
OS: CachyOS (Arch Linux)
KDE Plasma: 6.7.5
Qt: 6.11.2
kio: 6.30.0
--
You are receiving this mail because:
You are watching all bug changes.