mirror of https://github.com/GNOME/gimp.git
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:
parent
9807ea4834
commit
32d18f28e7
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue