Bug 405789

Summary: Sidebar widths revert to their defaults after switching back from full-screen view.
Product: [Applications] digikam Reporter: aslam karachiwala <4slam>
Component: Usability-FullScreenAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version First Reported In: 5.6.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.1.0
Sentry Crash Report:

Description aslam karachiwala 2019-03-23 20:08:37 UTC
SUMMARY
With the 'Hide sidebars' setting checked under Views->Full-Screen, the sidebars revert to their respective default widths if one switches to full-screen, after changing the sidebar width(s), then switches back to window view. If 'Hide sidebars' is unchecked then the sidebars do retain their widths after switching back from full-screen to window view.

STEPS TO REPRODUCE
1. Menu selection Settings->Configure digiKam...
2. In Configuration window, go to Views->Full-Screen tab.
3. In Views->Full-Screen tab, enable 'Hide sidebars'.
4. Click OK button at the bottom; this will close the Configuration window.
5. Alter the widths of the left and right sidebars by dragging their respective boundaries.
6. Switch to full-screen view.
7. Leave the full-screen view.

OBSERVED RESULT
The sidebars have their respective default widths.

EXPECTED RESULT
The sidebar widths are those set in #5 above.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Kubuntu 18.04
(available in About System)
KDE Plasma Version: 5.12.7
KDE Frameworks Version: 5.44.0
Qt Version: 5.9.5

ADDITIONAL INFORMATION
Possibly related to bug 25818. (I've seen this behavior since I started using digiKam, which was around April 2016.)
Comment 1 aslam karachiwala 2019-03-23 20:11:44 UTC
Correction: Possibly related to bug 258180.
Comment 2 caulier.gilles 2019-03-23 21:15:31 UTC
Please check if this problem still reproducible with current 6.1.0 pre-release Linux bundle AppImage available here :

https://files.kde.org/digikam/

6.1.0 come with 3 years of development compared to 5.6.0 with more than 500 bug fixes.

Thanks in advance

Gilles Caulier
Comment 3 Maik Qualmann 2019-03-24 10:37:06 UTC
Git commit 3d8a48b5967e58ead8c3d2a4fc9a528333fb2b33 by Maik Qualmann.
Committed on 24/03/2019 at 10:34.
Pushed by mqualmann into branch 'master'.

fix restore QSplitter size after fullscreen
After call show() the QSplitter size is
always 0, we need a timer here.
FIXED-IN: 6.1.0

M  +2    -2    NEWS
M  +5    -0    core/libs/widgets/mainview/sidebar.cpp
M  +1    -0    core/libs/widgets/mainview/sidebar.h

https://commits.kde.org/digikam/3d8a48b5967e58ead8c3d2a4fc9a528333fb2b33
Comment 4 aslam karachiwala 2019-03-24 17:19:33 UTC
Confirming the fix in digikam-6.1.0-git-20190324T164524-x86-64.appimage.
👍🏽