From 778e0ed51d2ae33e36769597c2bfe7bc9024e8a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Mon, 11 Feb 2008 15:20:11 +0000 Subject: [PATCH] Restart list searching after removing from it, just in case. CCMAIL: faure@kde.org svn path=/trunk/KDE/kdebase/workspace/; revision=773631 --- group.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/group.cpp b/group.cpp index f2dc6e72b6..974844e7b9 100644 --- a/group.cpp +++ b/group.cpp @@ -681,8 +681,8 @@ void Client::cleanGrouping() { if( (*it)->transientFor() == this ) { - ClientList::ConstIterator it2 = it++; - removeTransient( *it2 ); + removeTransient( *it ); + it = transients_list.begin(); // restart, just in case something more has changed with the list } else ++it;