]> git.sesse.net Git - vlc/commitdiff
qt4: Prevent an equalizer crash on Mac OSX
authorJuho Vähä-Herttua <juhovh@iki.fi>
Thu, 22 Jul 2010 13:58:43 +0000 (16:58 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Thu, 22 Jul 2010 14:15:40 +0000 (17:15 +0300)
Signed-off-by: Ilkka Ollakka <ileoo@videolan.org>
modules/gui/qt4/components/extended_panels.cpp

index 3a05513f1bc38974ef9f85b1c5ffb4e8a5da3eae..95c391a66c904d06beddb0b2b160e03e8d9a786f 100644 (file)
@@ -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 );