get rid of the crash for now

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=738319
This commit is contained in:
Aaron J. Seigo 2007-11-18 16:24:38 +00:00
parent 16f5c95fef
commit 86d745a644

View File

@ -148,6 +148,10 @@ int LayoutAnimator::effect(State action) const
void LayoutAnimator::setCurrentState( LayoutItem* item , State state ) void LayoutAnimator::setCurrentState( LayoutItem* item , State state )
{ {
if (state == RemovedState && !d->states.contains(item)) {
return;
}
State oldState = d->states[item]; State oldState = d->states[item];
d->states[item] = state; d->states[item] = state;