app: fix a crash when editing the shortcut not on an actual action.

Liam was hitting Backspace on "histogram" which is an action section and
would likely not return a proper GimpAction through
gimp_action_view_get_accel_action().

Therefore let's make sure we initialize properly the action to NULL.
This commit is contained in:
Jehan 2024-08-17 00:11:38 +02:00
parent 9807ea4834
commit 32d18f28e7
1 changed files with 2 additions and 2 deletions

View File

@ -696,7 +696,7 @@ gimp_action_view_accel_edited (GtkCellRendererAccel *accel,
guint hardware_keycode,
GimpActionView *view)
{
GimpAction *action;
GimpAction *action = NULL;
guint action_accel_key;
GdkModifierType action_accel_mask;
@ -803,7 +803,7 @@ gimp_action_view_accel_cleared (GtkCellRendererAccel *accel,
const char *path_string,
GimpActionView *view)
{
GimpAction *action;
GimpAction *action = NULL;
guint action_accel_key;
GdkModifierType action_accel_mask;