davidedmundson added a comment.
> I guess KSharedConfig would work as well, that way the KConfig keeps a reference alive. I'm not convinced that auto group = KSharedConfig::openConfig().group() would be any different. Your shared pointer still goes out of scope, the group's handle to the kconfig object is still the same. but I can change anyway REPOSITORY R119 Plasma Desktop REVISION DETAIL https://phabricator.kde.org/D13586 To: davidedmundson, #plasma Cc: ngraham, fvogt, plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart