applets/weather: Guard for location reset during KIO job

m_locationPromise is reset at runtime based on events from Plasma.

If this happens whilst the KJob are in-flight we will crash when they return.

This is merely a lazy guard and not close to a good fix. The core design is off, we should not be storing a qpromise as a member variable if it's changed multiple times within the lifespan of the EnvCanadaIon.

Sentry: PLASMA-WORKSPACE-52S4

Edited by David Edmundson

Merge request reports

Loading