Bug 463531

Summary: Open file dialog setting does not match appearance on new install
Product: [Frameworks and Libraries] frameworks-kio Reporter: mrfrh <mrfrh>
Component: Open/save dialogsAssignee: KIO Bugs <kio-bugs-null>
Status: REPORTED ---    
Severity: minor CC: kdelibs-bugs-null, nate
Priority: NOR    
Version First Reported In: 5.101.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: option does not match appearance of the dialog
setting in frameworks 5.240.0

Description mrfrh 2022-12-27 21:07:25 UTC
Created attachment 154854 [details]
option does not match appearance of the dialog

SUMMARY
On a brand new install, the setting "allow expanding of folders in detailed view" (not sure if this is the correct translation from German) does not match the default layout of the open file dialog, as the option is unchecked but the detailed view is activated and folders can be expanded (see screenshot).

STEPS TO REPRODUCE
1. Perform a new install (I used openSUSE Tumbleweed)
2. Open any "open file" dialog
3. Option "allow expanding of folders in detailed view" is unchecked, but the dialog does exactly have this configuration

OBSERVED RESULT
Option "allow expanding of folders in detailed view" is unchecked, but the dialog does exactly have this configuration.

EXPECTED RESULT
Checkbox should fit the appearance of the dialog.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7

ADDITIONAL INFORMATION
Comment 1 mrfrh 2023-11-09 09:56:29 UTC
Created attachment 162967 [details]
setting in frameworks 5.240.0

Though a minor issue, this is still present in frameworks 5.240.0 and can be reproduces on live iso neon-unstable-20231107-1001.iso, see attachment.
Comment 2 mrfrh 2023-11-09 11:30:33 UTC
So this could be solved by adding the following to kdeglobals (though I don't think this is a desired solution):
[KFileDialog Settings]
Allow Expansion=true

But, from my understanding, there is no other way to initialize allowExpansionAction in kfilewidget.cpp?
Comment 3 mrfrh 2023-11-09 12:14:31 UTC
(In reply to mrfrh from comment #2)
> But, from my understanding, there is no other way to initialize
> allowExpansionAction in kfilewidget.cpp?

sorry, wrong filename. I meat in kdiroperator.cpp --> KDirOperator::setupActions()