Browse Source

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
pull/3418/head
Vincas Dargis 9 years ago
parent
commit
f18db4fd50
  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