Fix crash in InnerDropdown widget animations.
This commit is contained in:
parent
dfa7cb1826
commit
180f83c528
|
@ -111,8 +111,11 @@ void InnerDropdown::paintEvent(QPaintEvent *e) {
|
||||||
auto ms = getms();
|
auto ms = getms();
|
||||||
if (_a_show.animating(ms)) {
|
if (_a_show.animating(ms)) {
|
||||||
if (auto opacity = _a_opacity.current(ms, _hiding ? 0. : 1.)) {
|
if (auto opacity = _a_opacity.current(ms, _hiding ? 0. : 1.)) {
|
||||||
|
// _a_opacity.current(ms)->opacityAnimationCallback()->_showAnimation.reset()
|
||||||
|
if (_showAnimation) {
|
||||||
_showAnimation->paintFrame(p, 0, 0, width(), _a_show.current(1.), opacity);
|
_showAnimation->paintFrame(p, 0, 0, width(), _a_show.current(1.), opacity);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else if (_a_opacity.animating(ms)) {
|
} else if (_a_opacity.animating(ms)) {
|
||||||
p.setOpacity(_a_opacity.current(0.));
|
p.setOpacity(_a_opacity.current(0.));
|
||||||
p.drawPixmap(0, 0, _cache);
|
p.drawPixmap(0, 0, _cache);
|
||||||
|
|
Loading…
Reference in New Issue