summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-01-29 06:29:07 -0700
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-01-29 06:29:07 -0700
commit86aa409c1f27a7cfed181934a13e8c4a7b016df1 (patch)
tree2bef58a7e0fe3ee707c7687521ed5fdeb5094289 /include
parentUse Qt 5.9.2 on travis (diff)
downloadnheko-86aa409c1f27a7cfed181934a13e8c4a7b016df1.tar.xz
Register timeline item so that it will be available
Diffstat (limited to 'include')
-rw-r--r--include/timeline/TimelineView.h6
1 files 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.