Commit cdbe2344 authored by Ilkka Ollakka's avatar Ilkka Ollakka

Qt4: enable all messages only if filter is empty

(cherry picked from commit eadba593a3010168598a4395fceecd392f8469c5)
Signed-off-by: default avatarIlkka Ollakka <ileoo@videolan.org>
parent d6c6b013
......@@ -195,10 +195,9 @@ void MessagesDialog::updateConfig()
config_PutPsz(p_intf, "verbose-objects", qtu(vbobjectsEdit->text()));
//vbobjectsEdit->setText("vbEdit changed!");
char * psz_verbose_objects = strdup(qtu(vbobjectsEdit->text()));
msg_EnableObjectPrinting(p_intf, "all");
if( psz_verbose_objects )
if( !vbobjectsEdit->text().isEmpty() )
{
char * psz_verbose_objects = strdup(qtu(vbobjectsEdit->text()));
char * psz_object, * iter = psz_verbose_objects;
while( (psz_object = strsep( &iter, "," )) )
{
......@@ -211,6 +210,10 @@ void MessagesDialog::updateConfig()
}
free( psz_verbose_objects );
}
else
{
msg_EnableObjectPrinting( p_intf, "all");
}
}
void MessagesDialog::sinkMessage( msg_item_t *item )
......
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