Better check resizeEvent' size. Otherwise, the nowplayingwidget isn't always resized (even if it should), particulary at startup, when starting playing

This commit is contained in:
Arnaud Bienner 2012-03-19 20:42:19 +01:00
parent bb69d7d53a
commit 627ae372d4
1 changed files with 1 additions and 1 deletions

View File

@ -364,7 +364,7 @@ void NowPlayingWidget::SetMode(int mode) {
}
void NowPlayingWidget::resizeEvent(QResizeEvent* e) {
if (visible_ && mode_ == LargeSongDetails && e->oldSize().width() != e->size().width()) {
if (visible_ && mode_ == LargeSongDetails && e->oldSize() != e->size()) {
UpdateHeight();
UpdateDetailsText();
}