Commit def850d3 authored by Marco Martin's avatar Marco Martin
Browse files

Don't crash if the panelview is not ready

createWaitingPanels is not guaranteed to create all of them.
Those which have a desktop not ready yet will go back to waitingpanels until new turn.
This scenario sometimes happens during first run scripts or update ones, causing a crash in those cases
parent f3904957
......@@ -1883,7 +1883,9 @@ Plasma::Containment *ShellCorona::addPanel(const QString &plugin)
// immediately create the panel here so that we have access to the panel view
createWaitingPanels();
if (m_panelViews.contains(panel)) {
m_panelViews.value(panel)->setScreenToFollow(wantedScreen);
}
return panel;
}
......
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