1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-17 12:02:48 +01:00

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

View File

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