Bug 449806

Summary: Using hamburger menu to show menubar causes crash
Product: [Applications] okular Reporter: Bill Goodman <bg+kdex>
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED FIXED    
Severity: crash CC: felixernst, nate
Priority: NOR    
Version: 21.12.2   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:

Description Bill Goodman 2022-02-08 18:49:53 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1.  Hide menus if necessary (CTL-M)
2. From the hamburger menu select Settings > Show Menubar 
3. 

OBSERVED RESULT
Dialog with "okular.exe has stopped working"

EXPECTED RESULT
Menubar displayed

SOFTWARE/OS VERSIONS
Windows: 10 21H2
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
CONTROL-M shortcut key works to show and hide menubar. Crash occurs when using the entry in the hamburger menu.
Comment 1 Bug Janitor Service 2022-02-12 00:01:40 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kconfigwidgets/-/merge_requests/104
Comment 2 Albert Astals Cid 2022-02-12 15:53:25 UTC
Git commit 09660e648728f36e3da4769383517d7a509b8136 by Albert Astals Cid.
Committed on 11/02/2022 at 23:00.
Pushed by felixernst into branch 'master'.

KHambugerMenu: Fix crash on windows when showing the window menubar from the KHamburgerMenu

We were deleting the action that creates the khambugermenu too soon,
that meant the menu of the khambugermenu disappeared under our feet and
the handling of the mouse release event got unhappy about it

M  +1    -1    src/khamburgermenu.cpp

https://invent.kde.org/frameworks/kconfigwidgets/commit/09660e648728f36e3da4769383517d7a509b8136