Commit 3e9aae7e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt4: fix playlist crash

qtr() is misused in place of qtu().
Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent cde8d563
...@@ -281,13 +281,12 @@ void LocationBar::setIndex( const QModelIndex &index ) ...@@ -281,13 +281,12 @@ void LocationBar::setIndex( const QModelIndex &index )
QString text; QString text;
char *fb_name = input_item_GetTitle( item->inputItem() ); char *fb_name = input_item_GetTitle( item->inputItem() );
if( !EMPTY_STR( fb_name ) ) if( EMPTY_STR( fb_name ) )
text = qfu(fb_name);
else
{ {
free( fb_name );
fb_name = input_item_GetName( item->inputItem() ); fb_name = input_item_GetName( item->inputItem() );
text = qtr(fb_name);
} }
text = qfu(fb_name);
free(fb_name); free(fb_name);
QAbstractButton *btn = new LocationButton( text, first, !first, this ); QAbstractButton *btn = new LocationButton( text, first, !first, this );
......
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