get rid of the crash for now
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=738319
This commit is contained in:
parent
16f5c95fef
commit
86d745a644
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user