From 86aa409c1f27a7cfed181934a13e8c4a7b016df1 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Mon, 29 Jan 2018 06:29:07 -0700 Subject: [PATCH] Register timeline item so that it will be available --- include/timeline/TimelineView.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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.