Commit 25132c48 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[KCMShell] Don't assume KCModuleProxy is our child widget

This broke with the introduction of scroll bars around the KCM as the widget is a QScrollArea nowadays.

Differential Revision:
parent d7025351
......@@ -127,7 +127,8 @@ KCMShellMultiDialog::KCMShellMultiDialog(KPageDialog::FaceType dialogFace, QWidg
connect(this, &KCMShellMultiDialog::currentPageChanged,
this, [this](KPageWidgetItem *newPage,KPageWidgetItem *oldPage) {
KCModuleProxy *activeModule = qobject_cast<KCModuleProxy *>(newPage->widget());
KCModuleProxy *activeModule = newPage->widget()->findChild<KCModuleProxy *>();
if (activeModule) {
KActivities::ResourceInstance::notifyAccessed(QUrl("kcm:" + activeModule->moduleInfo().service()->storageId()),
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment