]> git.sesse.net Git - vlc/commitdiff
Qt4: module help may be NULL - fix #4144
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 6 Sep 2010 01:38:01 +0000 (04:38 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 6 Sep 2010 01:38:39 +0000 (04:38 +0300)
modules/gui/qt4/components/preferences_widgets.cpp

index 7de34722c41af1f671ecd8b8762c2bc68144fabc..5e99cb793e242bdfa79450e25d54591aefc99f50 100644 (file)
@@ -736,7 +736,9 @@ ModuleListConfigControl::~ModuleListConfigControl()
        checkBoxListItem *cbl = new checkBoxListItem; \
 \
        CONNECT( cb, stateChanged( int ), this, onUpdate() );\
-       cb->setToolTip( formatTooltip( qtr( module_get_help( p_parser ))));\
+       const char *help = module_get_help( p_parser ); \
+       if( help != NULL ) \
+           cb->setToolTip( formatTooltip( qtr( help ) ) ); \
        cbl->checkBox = cb; \
 \
        cbl->psz_module = strdup( module_get_object( p_parser ) ); \