kcms/scripts: Port away from nested event loop
QFileDialog::getOpenFileName uses a nested event loop, which can break QML
Instead make the code properly asycn
SENTRY: SYSTEMSETTINGS-44P
(cherry picked from commit 646d9023)
Co-authored-by: Nicolas Fella nicolas.fella@gmx.de