}
void StandardFeedsView::load() {
+ setUpdatesEnabled(false);
YTCategories *youTubeCategories = new YTCategories(this);
connect(youTubeCategories, SIGNAL(categoriesLoaded(const QList<YTCategory> &)),
SLOT(layoutCategories(const QList<YTCategory> &)));
feed->setFeedId("most_popular");
addVideoSourceWidget(feed);
}
+ if (categories.size() > 1) setUpdatesEnabled(true);
}
void StandardFeedsView::addVideoSourceWidget(VideoSource *videoSource) {
void StandardFeedsView::appear() {
setFocus();
- if (!layout) load();
+ if (!layout) {
+ update();
+ qApp->processEvents();
+ load();
+ }
QAction *regionAction = MainWindow::instance()->getRegionAction();
regionAction->setVisible(true);
}
void StandardFeedsView::paintEvent(QPaintEvent *event) {
QWidget::paintEvent(event);
- PainterUtils::topShadow(this);
+ // PainterUtils::topShadow(this);
}