]> git.sesse.net Git - vlc/commitdiff
Qt(dialog provider): fix utf8 issue with generic dialog box title
authorErwan Tulou <erwan10@videolan.org>
Sun, 13 Jul 2014 11:06:24 +0000 (13:06 +0200)
committerErwan Tulou <erwan10@videolan.org>
Sun, 13 Jul 2014 11:37:38 +0000 (13:37 +0200)
modules/gui/qt4/dialogs_provider.cpp

index 5729a7f9c4becdfca78d69d1b38d4c9788dd3b58..bd4dd9ea04751bcc443265ff1e868cd7a57a3c41 100644 (file)
@@ -341,7 +341,8 @@ void DialogsProvider::openFileGenericDialog( intf_dialog_args_t *p_arg )
     /* 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 );
         if( !file.isEmpty() )
         {
@@ -355,7 +356,7 @@ void DialogsProvider::openFileGenericDialog( intf_dialog_args_t *p_arg )
     else /* non-save mode */
     {
         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 );
         p_arg->i_results = files.count();
         p_arg->psz_results = (char **)malloc( p_arg->i_results * sizeof( char * ) );