diff --git a/src/libtomahawk/widgets/whatshotwidget.cpp b/src/libtomahawk/widgets/whatshotwidget.cpp index 894e8246f..fd5bb2d45 100644 --- a/src/libtomahawk/widgets/whatshotwidget.cpp +++ b/src/libtomahawk/widgets/whatshotwidget.cpp @@ -96,6 +96,18 @@ WhatsHotWidget::WhatsHotWidget( QWidget* parent ) connect( Tomahawk::InfoSystem::InfoSystem::instance(), SIGNAL( finished( QString ) ), SLOT( infoSystemFinished( QString ) ) ); + QTimer::singleShot(0, this, SLOT(fetchData())); +} + + +WhatsHotWidget::~WhatsHotWidget() +{ + delete ui; +} + +void +WhatsHotWidget::fetchData() +{ Tomahawk::InfoSystem::InfoCriteriaHash artistInfo; Tomahawk::InfoSystem::InfoRequestData requestData; @@ -108,17 +120,10 @@ WhatsHotWidget::WhatsHotWidget( QWidget* parent ) requestData.type = Tomahawk::InfoSystem::InfoChartTracks; Tomahawk::InfoSystem::InfoSystem::instance()->getInfo( requestData ); - tDebug() << "WhatsHot: requested InfoChartArtists+Tracks"; } -WhatsHotWidget::~WhatsHotWidget() -{ - delete ui; -} - - void WhatsHotWidget::checkQueries() { diff --git a/src/libtomahawk/widgets/whatshotwidget.h b/src/libtomahawk/widgets/whatshotwidget.h index b27198b12..c7070c455 100644 --- a/src/libtomahawk/widgets/whatshotwidget.h +++ b/src/libtomahawk/widgets/whatshotwidget.h @@ -75,6 +75,7 @@ signals: public slots: private slots: + void fetchData(); void checkQueries(); void infoSystemInfo( Tomahawk::InfoSystem::InfoRequestData requestData, QVariant output ); void infoSystemFinished( QString target );