Commit 15a30e75 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Aleix Pol Gonzalez
Browse files

DecorationItem: Prevent crash

We are calling a QPointer without checking it first.


(cherry picked from commit b44f33c7)
parent ac081cad
...@@ -45,7 +45,9 @@ Decoration::DecoratedClientImpl *DecorationRenderer::client() const ...@@ -45,7 +45,9 @@ Decoration::DecoratedClientImpl *DecorationRenderer::client() const
void DecorationRenderer::invalidate() void DecorationRenderer::invalidate()
{ {
addDamage(m_client->client()->rect()); if (m_client) {
addDamage(m_client->client()->rect());
}
m_imageSizesDirty = true; m_imageSizesDirty = true;
} }
......
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