[vlc-devel] [PATCH] Qt4: Actually save when a profile is deleted
Edward Wang
edward.c.wang at compdigitec.com
Mon Jan 2 15:15:09 CET 2012
Actually save the updated profiles list to the VLC settings when a profile is deleted.
Close #5769
---
modules/gui/qt4/components/sout/profile_selector.cpp | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/gui/qt4/components/sout/profile_selector.cpp b/modules/gui/qt4/components/sout/profile_selector.cpp
index 111cabc..de01d77 100644
--- a/modules/gui/qt4/components/sout/profile_selector.cpp
+++ b/modules/gui/qt4/components/sout/profile_selector.cpp
@@ -143,6 +143,7 @@ void VLCProfileSelector::editProfile( const QString& qs, const QString& value )
void VLCProfileSelector::deleteProfile()
{
profileBox->removeItem( profileBox->currentIndex() );
+ saveProfiles();
}
void VLCProfileSelector::saveProfiles()
@@ -155,6 +156,7 @@ void VLCProfileSelector::saveProfiles()
#endif
QSettings::UserScope, "vlc", "vlc-qt-interface" );
+ settings.remove( "codecs-profiles" ); /* Erase old profiles to be rewritten */
settings.beginWriteArray( "codecs-profiles" );
for( int i = 0; i < profileBox->count(); i++ )
{
--
1.7.5.4
More information about the vlc-devel
mailing list