diff --git a/src/widgets/statusview.cpp b/src/widgets/statusview.cpp index 0fc7928ca..418e8bce8 100644 --- a/src/widgets/statusview.cpp +++ b/src/widgets/statusview.cpp @@ -206,9 +206,10 @@ void StatusView::NoSongWidget() { label_stopped_top_->setFixedWidth(300); label_stopped_top_->setAlignment(Qt::AlignTop|Qt::AlignLeft); - widget_stopped_->setVisible(true); widget_stopped_->setLayout(layout_stopped_); container_layout_->insertWidget(0, widget_stopped_); + widget_stopped_->setVisible(true); + widgetstate_ = Stopped; } @@ -251,8 +252,7 @@ void StatusView::SongWidget() { label_playing_album_->setFixedWidth(300); label_playing_album_->setStyleSheet("background-color: transparent;"); label_playing_album_->installEventFilter(this); - - widget_playing_->setVisible(true); + widget_playing_->setLayout(layout_playing_); container_layout_->insertWidget(0, widget_playing_); @@ -262,6 +262,8 @@ void StatusView::SongWidget() { label_playing_text_->setStyleSheet(QString::fromLatin1(stylesheet.readAll())); } + widget_playing_->setVisible(true); + widgetstate_ = Playing; }