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:
commit
7405fde6b8
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user