Also accept filter-name without +/- as enabled one, so user can see
messages by just typing module-name without any other syntax.
if( !vbobjectsEdit->text().isEmpty() )
{
if( !vbobjectsEdit->text().isEmpty() )
{
+ /* if user sets filter, go with the idea that user just wants that to be shown,
+ so disable all by default and enable those that user wants */
+ msg_DisableObjectPrinting( p_intf, "all");
char * psz_verbose_objects = strdup(qtu(vbobjectsEdit->text()));
char * psz_object, * iter = psz_verbose_objects;
while( (psz_object = strsep( &iter, "," )) )
char * psz_verbose_objects = strdup(qtu(vbobjectsEdit->text()));
char * psz_object, * iter = psz_verbose_objects;
while( (psz_object = strsep( &iter, "," )) )
printf("%s\n", psz_object+1);
case '+': msg_EnableObjectPrinting(p_intf, psz_object+1); break;
case '-': msg_DisableObjectPrinting(p_intf, psz_object+1); break;
printf("%s\n", psz_object+1);
case '+': msg_EnableObjectPrinting(p_intf, psz_object+1); break;
case '-': msg_DisableObjectPrinting(p_intf, psz_object+1); break;
+ /* user can but just 'lua,playlist' on filter */
+ default: msg_EnableObjectPrinting(p_intf, psz_object); break;
}
}
free( psz_verbose_objects );
}
}
free( psz_verbose_objects );