From 6602e991617cf857c262ac3fbb2ac00c7de1fb15 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Mon, 22 May 2017 17:37:56 +0200 Subject: [PATCH] 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 --- shell/panelview.cpp | 1 + shell/shellcorona.cpp | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/shell/panelview.cpp b/shell/panelview.cpp index ba2e35e63..ac6aaedfd 100644 --- a/shell/panelview.cpp +++ b/shell/panelview.cpp @@ -116,6 +116,7 @@ PanelView::~PanelView() KConfigGroup PanelView::panelConfig(ShellCorona *corona, Plasma::Containment *containment, QScreen *screen) { + qWarning()<<"AAAA"<containment()); Q_ASSERT(panel->containment()->screen() == id || panel->containment()->screen() == -1); - Q_ASSERT(panel->isVisible()); + //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);