Qt: don't show plugins with no capabilities in Releases.
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 23 Jan 2009 23:20:02 +0000 (00:20 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 23 Jan 2009 23:20:02 +0000 (00:20 +0100)
modules/gui/qt4/dialogs/plugins.cpp

index f4289d1..ee8d52b 100644 (file)
@@ -101,6 +101,9 @@ inline void PluginDialog::FillTree()
         qs_item << qfu( module_get_name( p_module, true ) )
                 << qfu( module_get_capability( p_module ) )
                 << QString::number( module_get_score( p_module ) );
+#ifndef DEBUG
+        if( qs_item.at(1).isEmpty() ) continue;
+#endif
 
         QTreeWidgetItem *item = new QTreeWidgetItem( qs_item );
         treePlugins->addTopLevelItem( item );