kcms/ksmserver: Fix settings object lifetime management

Registering a QML singleton with an object with a small lifespan than the engine is wrong.

This will assert (or at best be broken) when the KCM is opened, closed and reopened.

This is in line with other KCMs.

BUG: 487028 BUG: 488292

Merge request reports

Loading