Fix finding duplicated keybindings
commitc252b1f376845ace9a05aa5f98a4cf92e466f604
authorColomban Wendling <ban@herbesfolles.org>
Tue, 22 Nov 2011 02:18:53 +0000 (22 03:18 +0100)
committerColomban Wendling <ban@herbesfolles.org>
Tue, 22 Nov 2011 23:51:46 +0000 (23 00:51 +0100)
treef74a00e9c0020379f98bf109efa91b1c89189daf
parent6738d43dee95b2fe15d67bfcbff2f5b6e0971d7c
Fix finding duplicated keybindings

When checking whether a keybinding is already in use before updating
it in the preferences, check against the keybindings the user may have
updated, not the ones that are currently applied.

This fixes changing action A from key K to key L and action B from key
L to key K, which led to conflicts back and forth since when setting B
to K the check found A as a duplicate even after having changed it.
src/prefs.c