[vlc-commits] commit: qt4: Prevent an equalizer crash on Mac OSX ( Juho Vähä-Herttua )

git at videolan.org git at videolan.org
Thu Jul 22 16:15:45 CEST 2010


vlc | branch: master | Juho Vähä-Herttua <juhovh at iki.fi> | Thu Jul 22 16:58:43 2010 +0300| [7ba91883bfc80375dc17ced94501c6c4e1baf82b] | committer: Ilkka Ollakka 

qt4: Prevent an equalizer crash on Mac OSX

Signed-off-by: Ilkka Ollakka <ileoo at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7ba91883bfc80375dc17ced94501c6c4e1baf82b
---

 modules/gui/qt4/components/extended_panels.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/components/extended_panels.cpp b/modules/gui/qt4/components/extended_panels.cpp
index 3a05513..95c391a 100644
--- a/modules/gui/qt4/components/extended_panels.cpp
+++ b/modules/gui/qt4/components/extended_panels.cpp
@@ -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 );



More information about the vlc-commits mailing list