Commit eadba593 authored by Ilkka Ollakka's avatar Ilkka Ollakka

Qt4: enable all messages only if filter is empty

parent cd0c2c45
...@@ -195,10 +195,9 @@ void MessagesDialog::updateConfig() ...@@ -195,10 +195,9 @@ void MessagesDialog::updateConfig()
config_PutPsz(p_intf, "verbose-objects", qtu(vbobjectsEdit->text())); config_PutPsz(p_intf, "verbose-objects", qtu(vbobjectsEdit->text()));
//vbobjectsEdit->setText("vbEdit changed!"); //vbobjectsEdit->setText("vbEdit changed!");
char * psz_verbose_objects = strdup(qtu(vbobjectsEdit->text())); if( !vbobjectsEdit->text().isEmpty() )
msg_EnableObjectPrinting(p_intf, "all");
if( psz_verbose_objects )
{ {
char * psz_verbose_objects = strdup(qtu(vbobjectsEdit->text()));
char * psz_object, * iter = psz_verbose_objects; char * psz_object, * iter = psz_verbose_objects;
while( (psz_object = strsep( &iter, "," )) ) while( (psz_object = strsep( &iter, "," )) )
{ {
...@@ -211,6 +210,10 @@ void MessagesDialog::updateConfig() ...@@ -211,6 +210,10 @@ void MessagesDialog::updateConfig()
} }
free( psz_verbose_objects ); free( psz_verbose_objects );
} }
else
{
msg_EnableObjectPrinting( p_intf, "all");
}
} }
void MessagesDialog::sinkMessage( msg_item_t *item ) 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