projects
/
profile
/
ivi
/
qtbase.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed crash on destruction of animating QDockWidget in a QMainWindow
[profile/ivi/qtbase.git]
/
src
/
widgets
/
widgets
/
qwidgetanimator.cpp
diff --git
a/src/widgets/widgets/qwidgetanimator.cpp
b/src/widgets/widgets/qwidgetanimator.cpp
index
edd9d63
..
aef967b
100644
(file)
--- a/
src/widgets/widgets/qwidgetanimator.cpp
+++ b/
src/widgets/widgets/qwidgetanimator.cpp
@@
-59,7
+59,9
@@
void QWidgetAnimator::abort(QWidget *w)
return;
QPropertyAnimation *anim = *it;
m_animation_map.erase(it);
- anim->stop();
+ if (anim) {
+ anim->stop();
+ }
#ifndef QT_NO_MAINWINDOW
m_mainWindowLayout->animationFinished(w);
#endif