Commit 39dcdf08 authored by Rémi Duraffort's avatar Rémi Duraffort

qt4: fix EMPTY_STR usage.

parent 5eb12a5c
......@@ -87,9 +87,9 @@ void addDPStaticEntry( QMenu *menu,
const char *shortcut = NULL )
{
QAction *action = NULL;
if( !EMPTY_STR( icon ) > 0 )
if( !EMPTY_STR( icon ) )
{
if( !EMPTY_STR( shortcut ) > 0 )
if( !EMPTY_STR( shortcut ) )
action = menu->addAction( QIcon( icon ), text, THEDP,
member, qtr( shortcut ) );
else
......@@ -97,7 +97,7 @@ void addDPStaticEntry( QMenu *menu,
}
else
{
if( !EMPTY_STR( shortcut ) > 0 )
if( !EMPTY_STR( shortcut ) )
action = menu->addAction( text, THEDP, member, qtr( shortcut ) );
else
action = menu->addAction( text, THEDP, member );
......
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