summaryrefslogtreecommitdiff
path: root/plugins/gtkui/hotkeys.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-10-10 18:33:10 +0200
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-10-10 18:33:10 +0200
commit8526710e817bb2e0b82bf1fd57d782e6a802248a (patch)
tree25979f433a7c8cd692dcbe4976c4e9053330397c /plugins/gtkui/hotkeys.c
parent2b6cd8d53fee79ea20dabbb606d8742083d6de98 (diff)
gtkui: fixed hang on invalid accelerator in hotkey dialog
Diffstat (limited to 'plugins/gtkui/hotkeys.c')
-rw-r--r--plugins/gtkui/hotkeys.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/gtkui/hotkeys.c b/plugins/gtkui/hotkeys.c
index 1c13247e..1d82f203 100644
--- a/plugins/gtkui/hotkeys.c
+++ b/plugins/gtkui/hotkeys.c
@@ -759,10 +759,10 @@ on_hotkeys_set_key_key_press_event (GtkWidget *widget,
if (!gtk_accelerator_valid (accel_key, accel_mods))
{
- gtk_button_set_label (GTK_BUTTON (widget), _("Invalid button! try again!"));
+ gtk_button_set_label (GTK_BUTTON (widget), _("Invalid key combination! try again!"));
gtk_widget_error_bell (widget);
- return TRUE;
+ goto out;
}
last_accel_key = accel_key;
last_accel_mask = accel_mods;