[vlc-commits] Qt: profile editor: fix buttons
Francois Cartegnie
git at videolan.org
Mon Sep 17 14:03:46 CEST 2012
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Sep 17 14:02:57 2012 +0200| [970a1b947137e4c8b891fcd3b6bb82ed6f5627bd] | committer: Francois Cartegnie
Qt: profile editor: fix buttons
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=970a1b947137e4c8b891fcd3b6bb82ed6f5627bd
---
modules/gui/qt4/components/sout/profile_selector.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/gui/qt4/components/sout/profile_selector.cpp b/modules/gui/qt4/components/sout/profile_selector.cpp
index c00b5d1..77f2a52 100644
--- a/modules/gui/qt4/components/sout/profile_selector.cpp
+++ b/modules/gui/qt4/components/sout/profile_selector.cpp
@@ -249,7 +249,8 @@ VLCProfileEditor::VLCProfileEditor( const QString& qs_name, const QString& value
setATranscodeOptions( false );
setSTranscodeOptions( false );
- QPushButton *saveButton = new QPushButton( qtr( "Save" ) );
+ QPushButton *saveButton = new QPushButton(
+ ( qs_name.isEmpty() ) ? qtr( "Create" ) : qtr( "Save" ) );
ui.buttonBox->addButton( saveButton, QDialogButtonBox::AcceptRole );
BUTTONACT( saveButton, close() );
QPushButton *cancelButton = new QPushButton( qtr( "Cancel" ) );
More information about the vlc-commits
mailing list