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, 
> [=] {
>          setButtons((KCModule::Buttons)(int)d->configModule->buttons());

`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?

REPOSITORY
  R295 KCMUtils

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D16594

To: davidedmundson, #plasma, broulik
Cc: bruns, kde-frameworks-devel, michaelh, ngraham

Reply via email to