Fix Graph refresh

This commit is contained in:
xarkes 2019-01-14 13:01:16 +01:00
parent b27cd39ddc
commit 3c27c62b2d

View File

@ -741,7 +741,6 @@ void GraphView::showBlock(GraphBlock *block, bool animated)
target_y = std::min(verticalScrollBar()->maximum(), target_y);
if (animated) {
QPropertyAnimation *animation_x = new QPropertyAnimation(horizontalScrollBar(), "value", this);
animation_x->deleteLater();
animation_x->setDuration(500);
animation_x->setStartValue(horizontalScrollBar()->value());
animation_x->setEndValue(target_x);