From 5e07b00c3432b2dd79d6134cab6992afaabbca94 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Mon, 6 Sep 2010 04:38:01 +0300 Subject: [PATCH] Qt4: module help may be NULL - fix #4144 --- modules/gui/qt4/components/preferences_widgets.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/gui/qt4/components/preferences_widgets.cpp b/modules/gui/qt4/components/preferences_widgets.cpp index 7de34722c4..5e99cb793e 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 ) ); \ -- 2.39.2