Commit 448c9929 authored by Pierre Hallot's avatar Pierre Hallot Committed by VaL Doroshchuk
Browse files

Fix warning on deleteLater on nullptr in QSampleCache


It is possible to have a loading thread running, but with no network
manager.
In that case, calling deleteLater() on m_networkAccessManager results in
a warning: postEvent: Unexpected null receiver.

Fix this issue by checking whether the network manager exists before
calling deleteLater() on it.

Task-number: QTBUG-66910
Change-Id: I818a87a605b4e906dee47c6c815a6b8112b16829
Reviewed-by: default avatarVaL Doroshchuk <valentyn.doroshchuk@qt.io>
parent 4e080dcb
Showing with 4 additions and 2 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment