diff --git a/include/timeline/TimelineView.h b/include/timeline/TimelineView.h index ddabf104..43a23b6a 100644 --- a/include/timeline/TimelineView.h +++ b/include/timeline/TimelineView.h @@ -128,10 +128,8 @@ private: void pushTimelineItem(TimelineItem *item) { item->hide(); - QTimer::singleShot(0, this, [=]() { - scroll_layout_->addWidget(item); - item->show(); - }); + scroll_layout_->addWidget(item); + QTimer::singleShot(0, this, [=]() { item->show(); }); }; //! Decides whether or not to show or hide the scroll down button.