diff --git a/libtaskmanager/xwindowtasksmodel.cpp b/libtaskmanager/xwindowtasksmodel.cpp index 0927d7460..b7febeb75 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(); } }