[vlc-devel] [PATCH] Fix for Ticket #4345
Vasily Fomin
vasili.fomin at gmail.com
Sat Sep 15 11:18:05 CEST 2012
---
modules/gui/qt4/dialogs/convert.cpp | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/modules/gui/qt4/dialogs/convert.cpp b/modules/gui/qt4/dialogs/convert.cpp
index 0e240ff..6139262 100644
--- a/modules/gui/qt4/dialogs/convert.cpp
+++ b/modules/gui/qt4/dialogs/convert.cpp
@@ -109,11 +109,18 @@ ConvertDialog::ConvertDialog( QWidget *parent, intf_thread_t *_p_intf,
}
void ConvertDialog::fileBrowse()
-{
+{
+ QString fileExtension = "." + profile->getMux();
+
QString fileName = QFileDialog::getSaveFileName( this, qtr( "Save file..." ),
- "",
- qtr( "Containers (*.ps *.ts *.mpg *.ogg *.asf *.mp4 *.mov *.wav *.raw *.flv *.webm)" ) );
- fileLine->setText( toNativeSeparators( fileName ) );
+ "",
+ QString( qtr( "Containers (*" ) + fileExtension + ")" ) );
+
+ if(fileName.isEmpty()) return;
+ if ( !fileName.endsWith( fileExtension ) ) {
+ fileName.append( fileExtension );
+ }
+ fileLine->setText( toNativeSeparators( fileName ) );
}
void ConvertDialog::cancel()
--
1.7.10.4
More information about the vlc-devel
mailing list