Commit 6602e991 authored by Marco Martin's avatar Marco Martin

don't check for panel visible during startup

if any kscreen related activities occurred
during startup, the panel wouldn't be visible
yet, and this would assert. This often happens
when a screen gets disabled at startup

CCBUG:377280
parent e8e2be90
......@@ -116,6 +116,7 @@ PanelView::~PanelView()
KConfigGroup PanelView::panelConfig(ShellCorona *corona, Plasma::Containment *containment, QScreen *screen)
{
qWarning()<<"AAAA"<<containment<<screen;
if (!containment || !screen) {
return KConfigGroup();
}
......
......@@ -787,8 +787,12 @@ void ShellCorona::screenInvariants() const
foreach (const PanelView *panel, panelsForScreen(screen)) {
Q_ASSERT(panel->containment());
Q_ASSERT(panel->containment()->screen() == id || panel->containment()->screen() == -1);
//If any kscreen related activities occurred
//during startup, the panel wouldn't be visible yet, and this would assert
if (panel->containment()->isUiReady()) {
Q_ASSERT(panel->isVisible());
}
}
screens.insert(screen);
}
......
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