Add runtime guard that pages are KCMs in KCMultiDialog
ClosedPublic

Authored by davidedmundson on Mar 19 2019, 5:24 PM.

Details

Summary

This situation can come up if a KCMultiDialog subclass adds pages
directly that aren't KCModules.

BUG: 405440

Test Plan

acheronuk tested this patch on a crashing example

Diff Detail

Repository
R295 KCMUtils
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
davidedmundson created this revision.Mar 19 2019, 5:24 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptMar 19 2019, 5:24 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
davidedmundson requested review of this revision.Mar 19 2019, 5:24 PM

Patch seemed to fix the crash. I don't use Kontact (apart from testing things like this), but on a quick test all seems functional once more.

aacid accepted this revision.Mar 19 2019, 6:54 PM
aacid added a subscriber: aacid.

Approving since it's similar to what i did in https://phabricator.kde.org/D19889

This revision is now accepted and ready to land.Mar 19 2019, 6:54 PM
This revision was automatically updated to reflect the committed changes.