void QextWinEventNotifier::setEnabled(bool enable)
if (d->enabled == enable)
d->enabled = enable;
//RFOG PATCH: at this level if dtor chain call with serial port open, notifierThread has been deleted by QT
Of course, code works fin if user calls to close() before destructors chains get launched. BTW, I've solved my code avoiding call close() in my own destructors but I've maintained that code in setEnabled() method in my code.