Commit 4c00fc2b authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Media: Reorder the extension list, so avi is first.

On KDE (maybe other window manager, but I didn't test those) the first
extension was used as the default one.
This is probably not the cleaner way, but it works for now.
parent 3813400e
......@@ -634,9 +634,9 @@ MainWindow::renderVideo( const QString& outputFileName, quint32 width, quint32 h
}
bool
MainWindow::renderVideoSettings( bool exportType )
MainWindow::renderVideoSettings( bool shareOnInternet )
{
RendererSettings *settings = new RendererSettings( exportType );
RendererSettings *settings = new RendererSettings( shareOnInternet );
if ( settings->exec() == QDialog::Rejected )
{
......
......@@ -31,11 +31,11 @@
#include <QFileInfo>
#include <QMessageBox>
RendererSettings::RendererSettings( bool exportType )
RendererSettings::RendererSettings( bool shareOnInternet )
{
m_ui.setupUi( this );
m_ui.setupUi( this );
if( exportType )
if( shareOnInternet )
{
m_ui.outputLabel->setVisible( false );
m_ui.outputFileName->setVisible( false );
......
......@@ -44,7 +44,7 @@ class RendererSettings : public QDialog
};
public:
RendererSettings( bool exportType = false );
RendererSettings( bool shareOnInternet = false );
quint32 width() const;
quint32 height() const;
......
......@@ -36,7 +36,7 @@
#include <QtDebug>
#include <QUrl>
const QString Media::VideoExtensions = "*.3gp *.amv *.asf *.avi *.divx *.dv *.flv *.gxf "
const QString Media::VideoExtensions = "*.avi *.3gp *.amv *.asf *.divx *.dv *.flv *.gxf "
"*.iso *.m1v *.m2v *.m2t *.m2ts *.m4v *.mkv *.mov "
"*.mp2 *.mp4 *.mpeg *.mpeg1 *.mpeg2 *.mpeg4 *.mpg "
"*.mts *.mxf *.nsv *.nuv *.ogg *.ogm *.ogv *.ogx *.ps "
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment