summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Hein <hein@kde.org>2017-02-17 16:58:41 (GMT)
committerEike Hein <hein@kde.org>2017-02-17 17:31:35 (GMT)
commitb82d364536fab6bdeea0c9bc3f8eecfa988e7df3 (patch)
tree5bd12bd373174ab28fe820e1aab1c4f48d29d8fc
parent6b833f1ca2bda69ed2c4984699f4e3ecdf2a5d4e (diff)
Fix crash.
Summary: i.remove() makes i.key() crash. Duh. Reviewers: #plasma, davidedmundson Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D4651
-rw-r--r--libtaskmanager/xwindowtasksmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtaskmanager/xwindowtasksmodel.cpp b/libtaskmanager/xwindowtasksmodel.cpp
index 0927d74..b7febeb 100644
--- a/libtaskmanager/xwindowtasksmodel.cpp
+++ b/libtaskmanager/xwindowtasksmodel.cpp
@@ -314,8 +314,8 @@ void XWindowTasksModel::Private::transientChanged(WId window, NET::Properties pr
i.next();
if (i.value() == window) {
- i.remove();
oldLeader = i.key();
+ i.remove();
}
}