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
1 changed files with 2 additions and 4 deletions

View File

@ -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.