[vlmc-devel] while saving filename user maynot give extension
Sanket Markan
git at videolan.org
Fri Mar 11 14:33:45 CET 2016
vlmc | branch: master | Sanket Markan <sanketmarkan at gmail.com> | Wed Mar 9 01:12:42 2016 +0530| [5ebbb6af8d322c65046e888f1411d3e16270cdbc] | committer: Hugo Beauzée-Luyssen
while saving filename user maynot give extension
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>
> https://code.videolan.org/videolan/vlmc/commit/5ebbb6af8d322c65046e888f1411d3e16270cdbc
---
src/Gui/MainWindow.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp
index d18db1a..fc88afd 100644
--- a/src/Gui/MainWindow.cpp
+++ b/src/Gui/MainWindow.cpp
@@ -353,6 +353,8 @@ MainWindow::on_actionSave_As_triggered()
QString(), QObject::tr( "VLMC project file(*.vlmc)" ) );
if ( dest.isEmpty() == true )
return;
+ if ( !dest.endsWith( ".vlmc" ) )
+ dest += ".vlmc";
Core::getInstance()->project()->saveAs( dest );
}
More information about the Vlmc-devel
mailing list