scripting: Guard against nullptr m_client in WindowThumbnailItem
BUG: 443765
This commit is contained in:
parent
59a4a908f9
commit
f1e99e971f
1 changed files with 3 additions and 0 deletions
|
@ -335,6 +335,9 @@ static QRectF centeredSize(const QRectF &boundingRect, const QSizeF &size)
|
|||
|
||||
QRectF WindowThumbnailItem::paintedRect() const
|
||||
{
|
||||
if (!m_client) {
|
||||
return QRectF();
|
||||
}
|
||||
if (!m_offscreenTexture) {
|
||||
const QSizeF iconSize = m_client->icon().actualSize(window(), boundingRect().size().toSize());
|
||||
return centeredSize(boundingRect(), iconSize);
|
||||
|
|
Loading…
Reference in a new issue