mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 05:37:29 +02:00
Avoid crash.
This commit is contained in:
@@ -54,7 +54,8 @@ DelegateConfigWrapper::DelegateConfigWrapper( QWidget* conf, QWidget* aboutWidge
|
|||||||
|
|
||||||
QHBoxLayout* h = new QHBoxLayout( this );
|
QHBoxLayout* h = new QHBoxLayout( this );
|
||||||
h->addWidget( m_buttons );
|
h->addWidget( m_buttons );
|
||||||
h->setContentsMargins( m_widget->layout()->contentsMargins() );
|
if( m_widget && m_widget->layout() )
|
||||||
|
h->setContentsMargins( m_widget->layout()->contentsMargins() );
|
||||||
v->addLayout( h );
|
v->addLayout( h );
|
||||||
|
|
||||||
setLayout( v );
|
setLayout( v );
|
||||||
|
Reference in New Issue
Block a user