Commit c1292ad5 authored by Reuben Green's avatar Reuben Green Committed by Andre Miranda

Prevent Gtk-CRITICAL when adding or modifying a user customizable action.

Bug #15970

Adds a check for a NULL value which occurs when adding a new user customizable
action or adding a keyboard shortcut to one which previously did not have one.
This NULL value itself is not an error, since it indicates the abscence of an
existing shortcut, but the lack of this check causes a Gtk-CRITICAL error.
parent 51f9f322
......@@ -655,7 +655,7 @@ thunar_uca_editor_save (ThunarUcaEditor *uca_editor,
-1);
/* always clear the accelerator, it'll be updated in thunar_uca_model_update */
if (gtk_accel_map_lookup_entry (uca_editor->accel_path, &key) && key.accel_key != 0)
if (uca_editor->accel_path != NULL && gtk_accel_map_lookup_entry (uca_editor->accel_path, &key) && key.accel_key != 0)
gtk_accel_map_change_entry (uca_editor->accel_path, 0, 0, TRUE);
thunar_uca_model_update (uca_model, iter,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment