Workaround QTBUG-47066 to fix crash on startup
ClosedPublic

Authored by fvogt on Sep 14 2018, 9:35 AM.

Details

Summary

The lambda returns a QStringBuilder which contains dangling references.
Work around that by converting to QString inside the lambda's context.

Test Plan

Does not crash anymore.

Diff Detail

Repository
R123 SDDM Configuration Panel (KCM)
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
fvogt created this revision.Sep 14 2018, 9:35 AM
Restricted Application added a project: Plasma. · View Herald TranscriptSep 14 2018, 9:35 AM
fvogt requested review of this revision.Sep 14 2018, 9:35 AM
davidedmundson accepted this revision.Sep 14 2018, 9:58 AM
This revision is now accepted and ready to land.Sep 14 2018, 9:58 AM
This revision was automatically updated to reflect the committed changes.