Commit f2c859ca authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf
Browse files

Qt, locationBar: translate Input->Name

Here, input_item_GetTitleFbName fails us, since we need to translate
Name, but not Title (I think)
Close  #4551
parent 874762fc
......@@ -261,9 +261,16 @@ void LocationBar::setIndex( const QModelIndex &index )
while( true )
{
PLItem *item = model->getItem( i );
QString text;
char *fb_name = input_item_GetTitleFbName( item->inputItem() );
QString text = qfu(fb_name);
char *fb_name = input_item_GetTitle( item->inputItem() );
if( !EMPTY_STR( fb_name ) )
text = qfu(fb_name);
else
{
fb_name = input_item_GetName( item->inputItem() );
text = qtr(fb_name);
}
free(fb_name);
QAbstractButton *btn = new LocationButton( text, first, !first, this );
......
Supports Markdown
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