mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-11 11:32:22 +02:00
Avoid crash.
This commit is contained in:
parent
bf51ce08dc
commit
1258d8ed79
@ -54,7 +54,8 @@ DelegateConfigWrapper::DelegateConfigWrapper( QWidget* conf, QWidget* aboutWidge
|
||||
|
||||
QHBoxLayout* h = new QHBoxLayout( this );
|
||||
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 );
|
||||
|
||||
setLayout( v );
|
||||
|
Loading…
x
Reference in New Issue
Block a user