[vlc-commits] commit: Qt4: enable all messages only if filter is empty (Ilkka Ollakka )
git at videolan.org
git at videolan.org
Fri Jul 9 10:57:13 CEST 2010
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Fri Jul 9 11:48:50 2010 +0300| [eadba593a3010168598a4395fceecd392f8469c5] | committer: Ilkka Ollakka
Qt4: enable all messages only if filter is empty
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=eadba593a3010168598a4395fceecd392f8469c5
---
modules/gui/qt4/dialogs/messages.cpp | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/modules/gui/qt4/dialogs/messages.cpp b/modules/gui/qt4/dialogs/messages.cpp
index 3558aa2..a8d1e95 100644
--- a/modules/gui/qt4/dialogs/messages.cpp
+++ b/modules/gui/qt4/dialogs/messages.cpp
@@ -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 )
More information about the vlc-commits
mailing list