Commit ec9dcbc6 authored by Clement CHAVANCE's avatar Clement CHAVANCE

vlmc extention is added to the settings file when saving it

parent 13da2c60
......@@ -31,6 +31,7 @@
#include <QDesktopServices>
#include <QUrl>
#include <QSettings>
#include <QStringList>
#include "MainWindow.h"
#include "MediaListWidget.h"
......@@ -162,6 +163,13 @@ void MainWindow::on_actionSave_triggered()
else
{
//Project manager will destroy itself.
QStringList list = outputFileName.split( "." );
if ( list.at( list.size() - 1 ) != "vlmc" )
{
list.append( "vlmc" );
outputFileName = list.join(".");
}
ProjectManager* pm = new ProjectManager( outputFileName );
pm->saveProject();
}
......
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