else if( i_type == VLC_VAR_STRING )
{
const char *psz_string = NULL;
- if( lineedit ) lineedit->setText( val.psz_string );
+ if( lineedit ) lineedit->setText( qfu(val.psz_string) );
else msg_Warn( p_intf, "Oops %s %s %d", __FILE__, __func__, __LINE__ );
free( val.psz_string );
}
}
else if( i_type == VLC_VAR_STRING )
{
- const char *psz_string = NULL;
- if( lineedit ) psz_string = lineedit->text().toStdString().c_str();
+ char *psz_string = NULL;
+ if( lineedit ) psz_string = qtu(lineedit->text());
else msg_Warn( p_intf, "Oops %s %s %d", __FILE__, __func__, __LINE__ );
config_PutPsz( p_intf, option.toStdString().c_str(), psz_string );
var_SetString( p_obj, option.toStdString().c_str(), psz_string );