mirror of https://github.com/GNOME/gimp.git
![]() When at least 3 recently closed docks were present in the Windows -> Recently Closed Docks submenu, then clicking the middle one caused a crash. Clicking the top or bottom one didn't cause a crash, but the submenu was then removed so the other closed docks were not visible anymore (until restarting GIMP). It turns out we were removing the whole recent menu, instead of picking the specific action that needed removing. So now we change this to get the action_name and use that in the remove call. Although this already fixes the crash, I added an extra check to make sure action is valid, and if not we generate a critical. This way we will notice something is wrong if this happens in the future, without causing a crash here. |
||
---|---|---|
.. | ||
dockable-menu.c | ||
dockable-menu.h | ||
file-menu.c | ||
file-menu.h | ||
filters-menu.c | ||
filters-menu.h | ||
image-menu.c | ||
image-menu.h | ||
menus-types.h | ||
menus.c | ||
menus.h | ||
meson.build | ||
plug-in-menus.c | ||
plug-in-menus.h | ||
shortcuts-rc.c | ||
shortcuts-rc.h | ||
tool-options-menu.c | ||
tool-options-menu.h | ||
window-menu.c | ||
window-menu.h | ||
windows-menu.c | ||
windows-menu.h |