• Pierre Hallot's avatar
    Fix warning on deleteLater on nullptr in QSampleCache · 448c9929
    Pierre Hallot authored
    
    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>
    448c9929