From 2cc77639715214573637375655442d2208898a38 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 10 May 2009 17:18:59 +0000 Subject: whitespaces svn-id: r40424 --- backends/keymapper/action.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'backends/keymapper/action.cpp') diff --git a/backends/keymapper/action.cpp b/backends/keymapper/action.cpp index ec2acb31b3..2541f60ddd 100644 --- a/backends/keymapper/action.cpp +++ b/backends/keymapper/action.cpp @@ -44,9 +44,13 @@ Action::Action(Keymap *boss, const char *i, String des, ActionType typ, } void Action::mapKey(const HardwareKey *key) { - if (_hwKey) _boss->unregisterMapping(this); + if (_hwKey) + _boss->unregisterMapping(this); + _hwKey = key; - if (_hwKey) _boss->registerMapping(this, _hwKey); + + if (_hwKey) + _boss->registerMapping(this, _hwKey); } const HardwareKey *Action::getMappedKey() const { -- cgit v1.2.3