This revision was automatically updated to reflect the committed changes.
Closed by commit R295:2da8aed41663: Add context to kcmodule connection to
lambdas (authored by davidedmundson).
REPOSITORY
R295 KCMUtils
CHANGES SINCE LAST UPDATE
https://phabricator.kde.org/D16594?vs=44659&id=44915
R
bruns accepted this revision.
bruns added inline comments.
INLINE COMMENTS
> davidedmundson wrote in kcmoduleqml.cpp:74
> Technically yes, but there's no sane scope for a code path where configModule
> is emitting anything between deleting d and this.
Thanks for the confirmation, hope nobody fi
davidedmundson added inline comments.
INLINE COMMENTS
> bruns wrote in kcmoduleqml.cpp:74
> `this` is desctructed after `d` has been deleted, so the signal may be still
> connected after d is deleted.
>
> Does `disconnect(configModule, 0, this, 0)` work, when called in the
> destructor?
Techn
bruns added inline comments.
INLINE COMMENTS
> kcmoduleqml.cpp:74
> setButtons((KCModule::Buttons)(int)d->configModule->buttons());
> -connect(configModule, &KQuickAddons::ConfigModule::buttonsChanged, [=] {
> +connect(configModule, &KQuickAddons::ConfigModule::buttonsChanged, this,
broulik accepted this revision.
This revision is now accepted and ready to land.
REPOSITORY
R295 KCMUtils
BRANCH
master
REVISION DETAIL
https://phabricator.kde.org/D16594
To: davidedmundson, #plasma, broulik
Cc: kde-frameworks-devel, michaelh, ngraham, bruns
davidedmundson created this revision.
davidedmundson added a reviewer: Plasma.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
davidedmundson requested review of this revision.
REVISION SUMMARY
configModule outlives KCModuleQML.
BUG: 397894
TEST PLAN