|
|
|
@ -44,7 +44,8 @@ void PasswordEdit::unregisterHandler()
@@ -44,7 +44,8 @@ void PasswordEdit::unregisterHandler()
|
|
|
|
|
#ifdef ENABLE_CAPSLOCK_INDICATOR |
|
|
|
|
if (eventHandler && eventHandler->actions.contains(action)) |
|
|
|
|
{ |
|
|
|
|
eventHandler->actions.removeOne(action); |
|
|
|
|
//TODO: future: use removeOne() when Qt 5.3 (Debian 8) support ends.
|
|
|
|
|
eventHandler->actions.remove(eventHandler->actions.indexOf(action)); |
|
|
|
|
if (eventHandler->actions.isEmpty()) |
|
|
|
|
{ |
|
|
|
|
delete eventHandler; |
|
|
|
|