Skip to content
GitLab
Menu
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
f1e99e97
Commit
f1e99e97
authored
Oct 15, 2021
by
Vlad Zahorodnii
Browse files
scripting: Guard against nullptr m_client in WindowThumbnailItem
BUG: 443765
parent
59a4a908
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/scripting/thumbnailitem.cpp
View file @
f1e99e97
...
...
@@ -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
);
...
...
Vlad Zahorodnii
@vladz
mentioned in commit
42126a25
·
Oct 15, 2021
mentioned in commit
42126a25
mentioned in commit 42126a2596dad53b7e5c62856bb346187a0ad901
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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