[vlmc-devel] commit: Allow loading a project from command line. (Hugo Beauzee-Luyssen )

git at videolan.org git at videolan.org
Sat Mar 13 15:42:24 CET 2010


vlmc | branch: master | Hugo Beauzee-Luyssen <beauze.h at gmail.com> | Sat Mar 13 15:31:26 2010 +0100| [5be1ea18788c7da20caa8f861aedd7f3b390b932] | committer: Hugo Beauzee-Luyssen 

Allow loading a project from command line.

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=5be1ea18788c7da20caa8f861aedd7f3b390b932
---

 src/main.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/main.cpp b/src/main.cpp
index d3a7a74..8f3f14f 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -28,7 +28,7 @@
 
 #include "config.h"
 #include "MainWindow.h"
-#include "SettingsManager.h"
+#include "ProjectManager.h"
 
 #include <QFile>
 
@@ -96,6 +96,8 @@ VLMCmain( int argc, char **argv )
     app.setPalette( p );
 
     MainWindow w;
+    if ( argc > 1 )
+        ProjectManager::getInstance()->loadProject( argv[argc - 1] );
     w.show();
     return app.exec();
 }



More information about the Vlmc-devel mailing list