Commit 909efd0a authored by Michael Jansen's avatar Michael Jansen
Browse files

Don't crash if the focus chain is empty()

CCMAIL: kwin@kde.org
parent 15959c26
......@@ -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 {
......
Supports Markdown
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