Commit 61e935ea authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Marco Martin
Browse files

PanelView: Do not crash when the state is transitioning

BUG: 373461
parent 524b13ad
Pipeline #140599 passed with stage
in 8 minutes and 42 seconds
......@@ -1408,17 +1408,19 @@ void PanelView::updateEnabledBorders()
break;
}
if (x() <= m_screenToFollow->geometry().x()) {
borders &= ~Plasma::FrameSvg::LeftBorder;
}
if (x() + width() >= m_screenToFollow->geometry().x() + m_screenToFollow->geometry().width()) {
borders &= ~Plasma::FrameSvg::RightBorder;
}
if (y() <= m_screenToFollow->geometry().y()) {
borders &= ~Plasma::FrameSvg::TopBorder;
}
if (y() + height() >= m_screenToFollow->geometry().y() + m_screenToFollow->geometry().height()) {
borders &= ~Plasma::FrameSvg::BottomBorder;
if (m_screenToFollow) {
if (x() <= m_screenToFollow->geometry().x()) {
borders &= ~Plasma::FrameSvg::LeftBorder;
}
if (x() + width() >= m_screenToFollow->geometry().x() + m_screenToFollow->geometry().width()) {
borders &= ~Plasma::FrameSvg::RightBorder;
}
if (y() <= m_screenToFollow->geometry().y()) {
borders &= ~Plasma::FrameSvg::TopBorder;
}
if (y() + height() >= m_screenToFollow->geometry().y() + m_screenToFollow->geometry().height()) {
borders &= ~Plasma::FrameSvg::BottomBorder;
}
}
}
......
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