Fix a race condition on startup that would cause a crash if the album cover loader thread took too long to start (happened a lot on Windows)

This commit is contained in:
David Sansome 2011-04-24 18:07:05 +00:00
parent c6c4902d3f
commit 8b1cbc33c0

View File

@ -164,6 +164,10 @@ void NowPlayingWidget::CoverLoaderInitialised() {
}
void NowPlayingWidget::UpdateHeight(AlbumCoverLoader* loader) {
if (!loader) {
return;
}
switch (mode_) {
case SmallSongDetails:
cover_height_ = small_ideal_height_;