fix addition of multiple meta pairs adding the first one repeatedly
authorVincent Penquerc'h <ogg.k.ogg.k@googlemail.com>
Sun, 8 Feb 2009 14:22:28 +0000 (14:22 +0000)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Sun, 8 Feb 2009 15:09:32 +0000 (17:09 +0200)
Signed-off-by: Rémi Denis-Courmont <rdenis@simphalempin.com>
modules/gui/qt4/components/info_panels.cpp

index 73daea9..755b197 100644 (file)
@@ -362,7 +362,6 @@ void ExtraMetaPanel::update( input_item_t *p_item )
         return;
     }
 
-    QStringList tempItem;
     QList<QTreeWidgetItem *> items;
 
     extraMetaTree->clear();
@@ -382,6 +381,7 @@ void ExtraMetaPanel::update( input_item_t *p_item )
     {
         const char * psz_value = (const char *)vlc_dictionary_value_for_key(
                 p_dict, ppsz_allkey[i] );
+        QStringList tempItem;
         tempItem.append( qfu( ppsz_allkey[i] ) + " : ");
         tempItem.append( qfu( psz_value ) );
         items.append( new QTreeWidgetItem ( extraMetaTree, tempItem ) );