mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 18:32:53 +00:00
gwenview: deep-copy added views in Gwenview::DocumentViewContainer::pretendFadeInFinished()
fixes crash in case animations are disabled Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
270ee6f318
commit
ae9dcfe318
1 changed files with 2 additions and 1 deletions
|
@ -279,7 +279,8 @@ void DocumentViewContainer::pretendFadeInFinished()
|
|||
{
|
||||
// Animations are disabled. Pretend all fade ins are finished so that added
|
||||
// views are moved to mViews
|
||||
Q_FOREACH(DocumentView* view, d->mAddedViews) {
|
||||
const DocumentViewSet copy = d->mAddedViews;
|
||||
Q_FOREACH(DocumentView* view, copy) {
|
||||
slotFadeInFinished(view);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue