From e1c33f093fbd98a746627e74d03ab71c89c69f38 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sat, 7 Apr 2018 12:12:58 +0200 Subject: [PATCH] Move setVisible() to prevent popup. --- src/widgets/statusview.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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; }