Commit 79ad172e authored by Erwan Tulou's avatar Erwan Tulou

Qt(dialog provider): fix utf8 issue with generic dialog box title

parent 13e72f28
...@@ -341,7 +341,8 @@ void DialogsProvider::openFileGenericDialog( intf_dialog_args_t *p_arg ) ...@@ -341,7 +341,8 @@ void DialogsProvider::openFileGenericDialog( intf_dialog_args_t *p_arg )
/* Save */ /* Save */
if( p_arg->b_save ) if( p_arg->b_save )
{ {
QString file = QFileDialog::getSaveFileName( NULL, p_arg->psz_title, QString file = QFileDialog::getSaveFileName( NULL,
qfu( p_arg->psz_title ),
p_intf->p_sys->filepath, extensions ); p_intf->p_sys->filepath, extensions );
if( !file.isEmpty() ) if( !file.isEmpty() )
{ {
...@@ -355,7 +356,7 @@ void DialogsProvider::openFileGenericDialog( intf_dialog_args_t *p_arg ) ...@@ -355,7 +356,7 @@ void DialogsProvider::openFileGenericDialog( intf_dialog_args_t *p_arg )
else /* non-save mode */ else /* non-save mode */
{ {
QStringList files = QFileDialog::getOpenFileNames( NULL, QStringList files = QFileDialog::getOpenFileNames( NULL,
p_arg->psz_title, p_intf->p_sys->filepath, qfu( p_arg->psz_title ), p_intf->p_sys->filepath,
extensions ); extensions );
p_arg->i_results = files.count(); p_arg->i_results = files.count();
p_arg->psz_results = (char **)malloc( p_arg->i_results * sizeof( char * ) ); p_arg->psz_results = (char **)malloc( p_arg->i_results * sizeof( char * ) );
......
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