Bug 449806 - Using hamburger menu to show menubar causes crash
Summary: Using hamburger menu to show menubar causes crash
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 21.12.2
Platform: Microsoft Windows Microsoft Windows
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-08 18:49 UTC by Bill Goodman
Modified: 2022-02-12 15:53 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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