[vlc-devel] [PATCH] Qt: Simple prefs/input fix value handling
Francois Cartegnie
fcvlcdev at free.fr
Thu Oct 1 17:15:48 CEST 2009
---
modules/gui/qt4/components/simple_preferences.cpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt4/components/simple_preferences.cpp b/modules/gui/qt4/components/simple_preferences.cpp
index c1ecda9..894c354 100644
--- a/modules/gui/qt4/components/simple_preferences.cpp
+++ b/modules/gui/qt4/components/simple_preferences.cpp
@@ -719,8 +719,9 @@ void SPrefsPanel::apply()
case SPrefsInputAndCodecs:
{
/* Device default selection */
- const char *psz_devicepath =
- qtu( qobject_cast<QLineEdit *>(optionWidgets[inputLE] )->text() );
+ const char *psz_devicepath = strdup(
+ qtu( qobject_cast<QLineEdit *>(optionWidgets[inputLE] )->text() )
+ );
if( !EMPTY_STR( psz_devicepath ) )
{
config_PutPsz( p_intf, "dvd", psz_devicepath );
--
1.6.2.5
More information about the vlc-devel
mailing list