From 3059e2a854dd49c60a66ac90b83e4a13618842cb Mon Sep 17 00:00:00 2001 From: Anna Arad Date: Tue, 21 Aug 2018 11:46:04 +0300 Subject: [PATCH] Fix UAC forgets keyboard shortcut - Bug #14617 --- plugins/thunar-uca/thunar-uca-editor.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/thunar-uca/thunar-uca-editor.c b/plugins/thunar-uca/thunar-uca-editor.c index d8928e9f..eb8c3dc4 100644 --- a/plugins/thunar-uca/thunar-uca-editor.c +++ b/plugins/thunar-uca/thunar-uca-editor.c @@ -604,7 +604,11 @@ thunar_uca_editor_load (ThunarUcaEditor *uca_editor, /* Resolve shortcut from accelerator */ uca_editor->accel_path = g_strdup_printf ("/ThunarActions/uca-action-%s", unique_id); if (gtk_accel_map_lookup_entry (uca_editor->accel_path, &key) && key.accel_key != 0) - accel_label = gtk_accelerator_get_label (key.accel_key, key.accel_mods); + { + accel_label = gtk_accelerator_get_label (key.accel_key, key.accel_mods); + uca_editor->accel_key = key.accel_key; + uca_editor->accel_mods = key.accel_mods; + } /* apply the new values */ gtk_entry_set_text (GTK_ENTRY (uca_editor->description_entry), (description != NULL) ? description : ""); -- 2.18.0