From: Elvis Angelaccio Date: Sun, 24 Mar 2019 10:55:12 +0000 (+0100) Subject: [PhononWidget] Fix layout warning X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/0b9cb0f7d9b6dc7c8c43a2afafb713f8c28ad0c5?ds=inline [PhononWidget] Fix layout warning `controlsLayout` should not be a direct child of the widget, since it already has `m_topLayout` as layout. This fixes the following warning: QLayout: Attempting to add QLayout "" to PhononWidget "", which already has a layout --- diff --git a/src/panels/information/phononwidget.cpp b/src/panels/information/phononwidget.cpp index 95f535713..77e066d37 100644 --- a/src/panels/information/phononwidget.cpp +++ b/src/panels/information/phononwidget.cpp @@ -106,7 +106,7 @@ void PhononWidget::showEvent(QShowEvent *event) m_topLayout = new QVBoxLayout(this); m_topLayout->setContentsMargins(0, 0, 0, 0); - QHBoxLayout *controlsLayout = new QHBoxLayout(this); + QHBoxLayout *controlsLayout = new QHBoxLayout(); controlsLayout->setContentsMargins(0, 0, 0, 0); controlsLayout->setSpacing(0);