[vlc-commits] Qt4: Actually save when a convert profile is deleted
Edward Wang
git at videolan.org
Mon Jan 2 16:42:27 CET 2012
vlc | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Mon Jan 2 16:42:02 2012 +0100| [b02e4929f8a5e7cbdf01915f1e9d76eeb0e2ece6] | 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>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b02e4929f8a5e7cbdf01915f1e9d76eeb0e2ece6
---
.../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