Browse Source

Merge pull request #3418

Vincas Dargis (1):
      fix(passwordedit.cpp): Fix build issue with Qt 5.3
pull/3415/head
sudden6 9 years ago
parent
commit
7405fde6b8
No known key found for this signature in database
GPG Key ID: 279509B499E032B9
  1. 3
      src/widget/passwordedit.cpp

3
src/widget/passwordedit.cpp

@ -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;

Loading…
Cancel
Save