Skip to content

Commit

Permalink
Prevent segmentation fault if keybinding is empty (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
otapliger authored and Corentin Noël committed Apr 12, 2018
1 parent bc3f67e commit 5a15c08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ShortcutEntry.vala
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public class ShortcutEntry : Object {

public ShortcutEntry (string name, string schema_id, string key) {
Object (name: name);
accels = {""};

var settings = get_settings_for_schema (schema_id);
var key_value = settings.get_value (key);
Expand Down

0 comments on commit 5a15c08

Please sign in to comment.