Register timeline item so that it will be available

This commit is contained in:
Konstantinos Sideris 2018-01-29 06:29:07 -07:00
parent 9231a86560
commit 86aa409c1f

View File

@ -128,10 +128,8 @@ private:
void pushTimelineItem(TimelineItem *item) void pushTimelineItem(TimelineItem *item)
{ {
item->hide(); item->hide();
QTimer::singleShot(0, this, [=]() {
scroll_layout_->addWidget(item); scroll_layout_->addWidget(item);
item->show(); QTimer::singleShot(0, this, [=]() { item->show(); });
});
}; };
//! Decides whether or not to show or hide the scroll down button. //! Decides whether or not to show or hide the scroll down button.