Commit 0ea21d35 authored by Marco Martin's avatar Marco Martin Committed by Nate Graham
Browse files

only update the global header reacting to the active page

if we get new pages which aren't active, they're non
influent wrt the status of the global header
BUG:437088


(cherry picked from commit 3365534c)
parent 9f975259
......@@ -302,7 +302,9 @@ void ModuleView::updatePageIconHeader(KPageWidgetItem *page, bool light)
page->setIcon(QIcon::fromTheme(moduleInfo->icon()));
const bool isQml = (moduleProxy && moduleProxy->realModule() && moduleProxy->realModule()->inherits("KCModuleQml"));
d->mCustomHeader->setVisible(!isQml);
if (activeModule() == moduleInfo) {
d->mCustomHeader->setVisible(!isQml);
}
page->setHeaderVisible(false);
if (light) {
......
Markdown is supported
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