1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-27 08:43:01 +01:00

Move setVisible() to prevent popup.

This commit is contained in:
Jonas Kvinge 2018-04-07 12:12:58 +02:00
parent 917b9c39b8
commit e1c33f093f

View File

@ -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;
}