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: https://phabricator.kde.org/D9963
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());
Q_UNUSED(oldPage);
KCModuleProxy *activeModule = newPage->widget()->findChild<KCModuleProxy *>();
if (activeModule) {
KActivities::ResourceInstance::notifyAccessed(QUrl("kcm:" + activeModule->moduleInfo().service()->storageId()),
"org.kde.systemsettings");
......
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