[vlc-commits] commit: Qt4: module help may be NULL - fix #4144 ( Rémi Denis-Courmont )
git at videolan.org
git at videolan.org
Mon Sep 6 03:38:44 CEST 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Sep 6 04:38:01 2010 +0300| [5e07b00c3432b2dd79d6134cab6992afaabbca94] | committer: Rémi Denis-Courmont
Qt4: module help may be NULL - fix #4144
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5e07b00c3432b2dd79d6134cab6992afaabbca94
---
modules/gui/qt4/components/preferences_widgets.cpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/modules/gui/qt4/components/preferences_widgets.cpp b/modules/gui/qt4/components/preferences_widgets.cpp
index 7de3472..5e99cb7 100644
--- a/modules/gui/qt4/components/preferences_widgets.cpp
+++ b/modules/gui/qt4/components/preferences_widgets.cpp
@@ -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 ) ); \
More information about the vlc-commits
mailing list