diff --git a/src/widget/passwordedit.cpp b/src/widget/passwordedit.cpp index 4ab6cdda3..e6ef11f96 100644 --- a/src/widget/passwordedit.cpp +++ b/src/widget/passwordedit.cpp @@ -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;