[vlc-commits] Qt4: Actually save when a convert profile is deleted

Edward Wang git at videolan.org
Mon Jan 2 17:20:05 CET 2012


vlc/vlc-1.2 | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Mon Jan  2 16:42:02 2012 +0100| [dfacbce0b468e9dafdfe3828dff0d4db06e3f8cd] | committer: Jean-Baptiste Kempf

Qt4: Actually save when a convert profile is deleted

Close #5769
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit b02e4929f8a5e7cbdf01915f1e9d76eeb0e2ece6)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=dfacbce0b468e9dafdfe3828dff0d4db06e3f8cd
---

 .../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++ )
     {



More information about the vlc-commits mailing list