Commit 5e07b00c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt4: module help may be NULL - fix #4144

parent 33f94a3d
...@@ -736,7 +736,9 @@ ModuleListConfigControl::~ModuleListConfigControl() ...@@ -736,7 +736,9 @@ ModuleListConfigControl::~ModuleListConfigControl()
checkBoxListItem *cbl = new checkBoxListItem; \ checkBoxListItem *cbl = new checkBoxListItem; \
\ \
CONNECT( cb, stateChanged( int ), this, onUpdate() );\ 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->checkBox = cb; \
\ \
cbl->psz_module = strdup( module_get_object( p_parser ) ); \ cbl->psz_module = strdup( module_get_object( p_parser ) ); \
......
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