Bug 410664

Summary: File dialog doesn't save preview setting
Product: [Frameworks and Libraries] frameworks-kio Reporter: TYY331 <sebastian.pb31>
Component: Open/save dialogsAssignee: David Faure <faure>
Status: RESOLVED WORKSFORME    
Severity: minor CC: bugseforuns, kdelibs-bugs
Priority: NOR    
Version: 5.60.0   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description TYY331 2019-08-06 17:56:57 UTC
SUMMARY
activating previews in the file dialog isn't remembered across instances, even setting previews to true in kdeglobals file gets rewritten when the file dialog is opened again

STEPS TO REPRODUCE
1. open a file dialog instance
2. activate previews
3. close the file dialog and open another one

OBSERVED RESULT
preview settings is always set to false regardless of user configuration

EXPECTED RESULT
preview settings are remembered across instances

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.16.4
KDE Frameworks Version: 5.60
Qt Version: 5.13.0

ADDITIONAL INFORMATION
setting icon/detail/compact view works
setting bookmarks works
setting icon size works
setting preview panel works
setting sort order works
Comment 1 TYY331 2019-08-06 19:17:48 UTC
i managed to fix it, turns out kdeglobals's file dialog section was corrupted, I recreated the file and checked that it worked, it probably was a legacy option that messed up the parsing, anyhow next are the two version of the section, if someone stumbles upon this bug you have to delete the section and it will be recreated automatically with a correct configuration.
produces bug
[KFileDialog Settings]
Allow Expansion=true
Automatically select filename extension=true
Breadcrumb Navigation=true
Decoration position=2
LocationCombo Completionmode=5
PathCombo Completionmode=5
Preview Width=235
Show Bookmarks=false
Show Full Path=false
Show Inline Previews=false
Show Preview=false
Show Speedbar=true
Show hidden files=false
Sort by=Date
Sort directories first=true
Sort reversed=true
Speedbar Width=156
View Style=Simple
listViewIconSize=72

correct configuration
[KFileDialog Settings]
Allow Expansion=false
Automatically select filename extension=true
Breadcrumb Navigation=true
Decoration position=2
LocationCombo Completionmode=5
PathCombo Completionmode=5
Show Bookmarks=false
Show Full Path=false
Show Inline Previews=true
Show Preview=false
Show Speedbar=true
Show hidden files=false
Sort by=Date
Sort directories first=true
Sort reversed=true
Speedbar Width=152
View Style=Simple