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
Unmaintained
KDE Workspace
Commits
909efd0a
Commit
909efd0a
authored
Mar 02, 2013
by
Michael Jansen
Browse files
Don't crash if the focus chain is empty()
CCMAIL: kwin@kde.org
parent
15959c26
Changes
1
Hide whitespace changes
Inline
Side-by-side
kwin/focuschain.cpp
View file @
909efd0a
...
...
@@ -149,7 +149,7 @@ void FocusChain::insertClientIntoChain(Client *client, QList< Client * >& chain)
return
;
}
if
(
m_activeClient
&&
m_activeClient
!=
client
&&
chain
.
last
()
==
m_activeClient
)
{
!
chain
.
empty
()
&&
chain
.
last
()
==
m_activeClient
)
{
// Add it after the active client
chain
.
insert
(
chain
.
size
()
-
1
,
client
);
}
else
{
...
...
Write
Preview
Supports
Markdown
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