discard the stored active tab rectangle if the animation is not running
BUG:225355 svn path=/trunk/KDE/kdelibs/; revision=1143717
This commit is contained in:
parent
791fa67a23
commit
60b151b23e
@ -232,7 +232,7 @@ void NativeTabBar::paintEvent(QPaintEvent *event)
|
||||
// Drawing Tabborders
|
||||
QRect movingRect;
|
||||
|
||||
if (d->currentAnimRect.isNull()) {
|
||||
if (d->currentAnimRect.isNull() || !d->anim || d->anim.data()->state() != QAbstractAnimation::Running) {
|
||||
movingRect = tabRect(currentIndex());
|
||||
} else {
|
||||
movingRect = d->currentAnimRect;
|
||||
|
Loading…
Reference in New Issue
Block a user