1
0
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:
Teo Mrnjavac 2012-08-05 12:56:08 +02:00
parent bf51ce08dc
commit 1258d8ed79

View File

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