mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(passwordedit.cpp): Fix build issue with Qt 5.3
QVector<T>::removeOne() was added in Qt 5.4, and this method usage broke build for Debian 8 whitch has Qt 5.3.2. Add alternative implementation and comment for the future to use removeOne() when this becomes possible. Closes #3416
This commit is contained in:
parent
fd2e5859fb
commit
f18db4fd50
|
@ -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