Don't prompt to download if already downloading!

#686
This commit is contained in:
Craig Drummond
2015-07-04 20:14:29 +01:00
committed by Craig Drummond
parent 308cde121d
commit 5f7155f652

View File

@@ -78,11 +78,13 @@ QList<Song> OnlineDbWidget::selectedSongs(bool allowPlaylists) const
void OnlineDbWidget::showEvent(QShowEvent *e)
{
SinglePageWidget::showEvent(e);
if (srv->isDownloading()) {
return;
}
if (srv->previouslyDownloaded()) {
srv->load();
} else if (!srv->isDownloading()) {
QTimer::singleShot(0, this, SLOT(firstTimePrompt()));
}
QTimer::singleShot(0, this, SLOT(firstTimePrompt()));
}
void OnlineDbWidget::firstTimePrompt()