summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAnna Arad <xfce@shards.me>2018-08-21 11:46:04 +0300
committerAndre Miranda <andreldm@xfce.org>2018-08-21 22:44:51 -0300
commitf1f52e5f6db4507a3754a938b1fae189d96a63c3 (patch)
tree653be58cd1e369820c66336dd05169975b08808f /plugins
parent5b6abc4fc0d962366da43ddf42b8070aa88c78e8 (diff)
downloadthunar-f1f52e5f6db4507a3754a938b1fae189d96a63c3.tar.gz
Fix UAC forgets keyboard shortcut (Bug #14617)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/thunar-uca/thunar-uca-editor.c6
1 files changed, 5 insertions, 1 deletions
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 ("<Actions>/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 : "");