]> git.sesse.net Git - vlc/commitdiff
Add calls to config_Put* to make sure that the configuration values survive a filter...
authorAntoine Cellerier <dionoea@videolan.org>
Sun, 1 Apr 2007 16:27:53 +0000 (16:27 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Sun, 1 Apr 2007 16:27:53 +0000 (16:27 +0000)
modules/gui/qt4/components/extended_panels.cpp

index ded3020b5c2557f84783627847e7534771a1b09a..d9531eb6196fdd2485164d8b9095ef35a186d293 100644 (file)
@@ -447,6 +447,7 @@ void ExtVideo::updateFilterOptions()
         else if( dial )     i_int = dial->value();
         else if( lineedit ) i_int = lineedit->text().toInt();
         else msg_Warn( p_intf, "Oops %s %s %d", __FILE__, __func__, __LINE__ );
+        config_PutInt( p_intf, option.toStdString().c_str(), i_int );
         if( i_type == VLC_VAR_INTEGER )
             var_SetInteger( p_obj, option.toStdString().c_str(), i_int );
         else
@@ -460,6 +461,7 @@ void ExtVideo::updateFilterOptions()
         else if( doublespinbox ) f_float = doublespinbox->value();
         else if( lineedit ) f_float = lineedit->text().toDouble();
         else msg_Warn( p_intf, "Oops %s %s %d", __FILE__, __func__, __LINE__ );
+        config_PutFloat( p_intf, option.toStdString().c_str(), f_float );
         var_SetFloat( p_obj, option.toStdString().c_str(), f_float );
     }
     else if( i_type == VLC_VAR_STRING )
@@ -467,6 +469,7 @@ void ExtVideo::updateFilterOptions()
         const char *psz_string = NULL;
         if( lineedit ) psz_string = lineedit->text().toStdString().c_str();
         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 );
     }
     else