Remove racy setting of eventDispatcher to 0.

This is inconsistent (e.g. the glib event dispatcher doesn't do this) and
unnecessary (already done by QThreadPrivate::finish before deleting the
event dispatcher, and by the QCoreApplication destructor).

Change-Id: Ib98147953a5e71ec87aab0ec7ef5063bb7d80134
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
David Faure 2013-03-22 15:50:16 +01:00 committed by The Qt Project
parent 9c6f27ce48
commit 85b25fc221

View File

@ -320,8 +320,6 @@ QEventDispatcherUNIX::QEventDispatcherUNIX(QEventDispatcherUNIXPrivate &dd, QObj
QEventDispatcherUNIX::~QEventDispatcherUNIX()
{
Q_D(QEventDispatcherUNIX);
d->threadData->eventDispatcher = 0;
}
int QEventDispatcherUNIX::select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,