Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
42126a25
Commit
42126a25
authored
Oct 15, 2021
by
Vlad Zahorodnii
Browse files
scripting: Guard against nullptr m_client in WindowThumbnailItem
BUG: 443765
(cherry picked from commit
f1e99e97
)
parent
5df7f620
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/scripting/thumbnailitem.cpp
View file @
42126a25
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment