]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/extended_panels.cpp
- qt4: retrict FileDialog changes to win32
[vlc] / modules / gui / qt4 / components / extended_panels.cpp
index 71ca7d69ee860db2665077d63505409536a036e6..36dd3efd9464e4056d1484d6f14bc48207392d15 100644 (file)
@@ -392,7 +392,7 @@ void ExtVideo::setWidgetValue( QObject *widget )
     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 );
     }
@@ -470,8 +470,8 @@ void ExtVideo::updateFilterOptions()
     }
     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 );