1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Merge pull request #3418

Vincas Dargis (1):
      fix(passwordedit.cpp): Fix build issue with Qt 5.3
This commit is contained in:
sudden6 2016-06-20 21:14:53 +02:00
commit 7405fde6b8
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

View File

@ -44,7 +44,8 @@ void PasswordEdit::unregisterHandler()
#ifdef ENABLE_CAPSLOCK_INDICATOR #ifdef ENABLE_CAPSLOCK_INDICATOR
if (eventHandler && eventHandler->actions.contains(action)) 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()) if (eventHandler->actions.isEmpty())
{ {
delete eventHandler; delete eventHandler;