diff --git a/src/corelib/kernel/qcore_unix.cpp b/src/corelib/kernel/qcore_unix.cpp index 8d788419fb..568453ec07 100644 --- a/src/corelib/kernel/qcore_unix.cpp +++ b/src/corelib/kernel/qcore_unix.cpp @@ -131,10 +131,10 @@ int bb_select(QList socketNotifiers, int nfds, fd_set *fdread socketNotifiersEnabled.reserve(socketNotifiers.count()); for (int a = 0; a < socketNotifiers.count(); ++a) { if (socketNotifiers.at(a) && socketNotifiers.at(a)->isEnabled()) { - socketNotifiersEnabled[a] = true; + socketNotifiersEnabled.append(true); socketNotifiers.at(a)->setEnabled(false); } else { - socketNotifiersEnabled[a] = false; + socketNotifiersEnabled.append(false); } }