diff --git a/src/libtomahawk/playlist/FlexibleHeader.cpp b/src/libtomahawk/playlist/FlexibleHeader.cpp index 6bfdc87ac..db4f1ca82 100644 --- a/src/libtomahawk/playlist/FlexibleHeader.cpp +++ b/src/libtomahawk/playlist/FlexibleHeader.cpp @@ -51,7 +51,7 @@ FlexibleHeader::FlexibleHeader( FlexibleView* parent ) f.close(); QHBoxLayout* outerModeLayout = new QHBoxLayout; - m_verticalLayout->addLayout( outerModeLayout ); + m_mainLayout->addLayout( outerModeLayout ); outerModeLayout->addSpacing( 156 ); outerModeLayout->addStretch(); diff --git a/src/libtomahawk/widgets/ScriptCollectionHeader.cpp b/src/libtomahawk/widgets/ScriptCollectionHeader.cpp index 1edf0ba4b..7f225c28b 100644 --- a/src/libtomahawk/widgets/ScriptCollectionHeader.cpp +++ b/src/libtomahawk/widgets/ScriptCollectionHeader.cpp @@ -31,7 +31,7 @@ ScriptCollectionHeader::ScriptCollectionHeader( QWidget* parent ) m_refreshButton->setFlat( true ); m_refreshButton->setStyleSheet( "QPushButton { border: 0px; background: transparent; }" ); QHBoxLayout* descLayout = new QHBoxLayout; - m_verticalLayout->insertLayout( m_verticalLayout->indexOf( m_descriptionLabel ), + m_mainLayout->insertLayout( m_mainLayout->indexOf( m_descriptionLabel ), descLayout ); descLayout->addWidget( m_descriptionLabel ); TomahawkUtils::unmarginLayout( descLayout );