diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-08-02 08:18:13 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-08-02 08:18:13 +0200 |
commit | f31a6363c496ded45d6c4fecf1ca93df619b294d (patch) | |
tree | 8f76952cc6699c29e422e414f88f1cb1b097e3a1 /src/utilities/bindingManager.vala | |
parent | 620857a09b64578bbeda46487ad307d0f6116540 (diff) | |
parent | 0b56dfbf01171226a0bb035afcd13358b6477710 (diff) |
Merge tag 'upstream/0.6.4'
Upstream version 0.6.4
Diffstat (limited to 'src/utilities/bindingManager.vala')
-rw-r--r-- | src/utilities/bindingManager.vala | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/utilities/bindingManager.vala b/src/utilities/bindingManager.vala index 6ca73cf..ac5a8fb 100644 --- a/src/utilities/bindingManager.vala +++ b/src/utilities/bindingManager.vala @@ -279,14 +279,15 @@ public class BindingManager : GLib.Object { ///////////////////////////////////////////////////////////////////// public string get_assigned_id(Trigger trigger) { - foreach (var binding in bindings) { - var first = Trigger.remove_optional(binding.trigger.name); - var second = Trigger.remove_optional(trigger.name); - if (first == second) { - return binding.id; + var second = Trigger.remove_optional(trigger.name); + if (second != "") { + foreach (var binding in bindings) { + var first = Trigger.remove_optional(binding.trigger.name); + if (first == second) { + return binding.id; + } } } - return ""; } |