]> git.sesse.net Git - vlc/commitdiff
Qt4: fix playlist crash
authorRémi Denis-Courmont <remi@remlab.net>
Tue, 19 Jul 2011 15:28:34 +0000 (18:28 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 19 Jul 2011 15:15:33 +0000 (18:15 +0300)
qtr() is misused in place of qtu().

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
modules/gui/qt4/components/playlist/playlist.cpp

index 4a07c8ad9760e81defb3c59418096ac76b2b05a3..3c3816d9507f58988508a9dadd2918125af86a44 100644 (file)
@@ -281,13 +281,12 @@ void LocationBar::setIndex( const QModelIndex &index )
         QString text;
 
         char *fb_name = input_item_GetTitle( item->inputItem() );
-        if( !EMPTY_STR( fb_name ) )
-             text = qfu(fb_name);
-        else
+        if( EMPTY_STR( fb_name ) )
         {
+            free( fb_name );
             fb_name = input_item_GetName( item->inputItem() );
-            text = qtr(fb_name);
         }
+        text = qfu(fb_name);
         free(fb_name);
 
         QAbstractButton *btn = new LocationButton( text, first, !first, this );