Commit 7ba91883 authored by Juho Vähä-Herttua's avatar Juho Vähä-Herttua Committed by Ilkka Ollakka

qt4: Prevent an equalizer crash on Mac OSX

Signed-off-by: default avatarIlkka Ollakka <ileoo@videolan.org>
parent 3b35ca6d
......@@ -843,7 +843,7 @@ static const QString band_frequencies[] =
Equalizer::Equalizer( intf_thread_t *_p_intf, QWidget *_parent ) :
QWidget( _parent ) , p_intf( _p_intf )
{
QFont smallFont = QApplication::font( static_cast<QWidget*>( 0 ) );
QFont smallFont = QApplication::font();
smallFont.setPointSize( smallFont.pointSize() - 3 );
ui.setupUi( this );
......@@ -1130,7 +1130,7 @@ static const char *psz_control_names[] =
Spatializer::Spatializer( intf_thread_t *_p_intf, QWidget *_parent ) :
QWidget( _parent ) , p_intf( _p_intf )
{
QFont smallFont = QApplication::font( static_cast<QWidget*>( 0 ) );
QFont smallFont = QApplication::font();
smallFont.setPointSize( smallFont.pointSize() - 3 );
QGridLayout *layout = new QGridLayout( this );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment