[prev in list] [next in list] [prev in thread] [next in thread]
List: kwin
Subject: [kde-workspace] kwin: Don't crash if the focus chain is empty()
From: Michael Jansen <kde () michael-jansen ! biz>
Date: 2013-03-02 14:12:11
Message-ID: 20130302141211.9931AA604F () git ! kde ! org
[Download RAW message or body]
Git commit 909efd0ae2d0019b886ddc6e56cbaf8c69496e7e by Michael Jansen.
Committed on 02/03/2013 at 12:10.
Pushed by mjansen into branch 'master'.
Don't crash if the focus chain is empty()
CCMAIL: kwin@kde.org
M +1 -1 kwin/focuschain.cpp
http://commits.kde.org/kde-workspace/909efd0ae2d0019b886ddc6e56cbaf8c69496e7e
diff --git a/kwin/focuschain.cpp b/kwin/focuschain.cpp
index 73ab467..1687ec8 100644
--- a/kwin/focuschain.cpp
+++ b/kwin/focuschain.cpp
@@ -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 {
_______________________________________________
kwin mailing list
kwin@kde.org
https://mail.kde.org/mailman/listinfo/kwin
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic