From d3efb9b0486b9c8ebfe582ba70873ae1982d60ac Mon Sep 17 00:00:00 2001 From: Antoine Cellerier Date: Sun, 1 Apr 2007 16:27:53 +0000 Subject: [PATCH] Add calls to config_Put* to make sure that the configuration values survive a filter instance destruction. --- modules/gui/qt4/components/extended_panels.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/gui/qt4/components/extended_panels.cpp b/modules/gui/qt4/components/extended_panels.cpp index ded3020b5c..d9531eb619 100644 --- a/modules/gui/qt4/components/extended_panels.cpp +++ b/modules/gui/qt4/components/extended_panels.cpp @@ -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 -- 2.39.2