[vlmc-devel] Main: Apply the latest Project and ConsoleRenderer
Yikai Lu
git at videolan.org
Tue Apr 12 15:56:37 CEST 2016
vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Mon Apr 11 15:09:25 2016 +0900| [57114b779038ed8846f00ced9a1a53a6c2c1854a] | committer: Hugo Beauzée-Luyssen
Main: Apply the latest Project and ConsoleRenderer
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>
> https://code.videolan.org/videolan/vlmc/commit/57114b779038ed8846f00ced9a1a53a6c2c1854a
---
src/Main/main.cpp | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/Main/main.cpp b/src/Main/main.cpp
index b72b84a..84b50c0 100644
--- a/src/Main/main.cpp
+++ b/src/Main/main.cpp
@@ -193,11 +193,10 @@ VLMCCoremain( int argc, char **argv )
#ifndef WITH_GUI
ConsoleRenderer renderer;
- ProjectManager *pm = Core::instance()->currentProject();
+ Project *p = Core::instance()->project();
- //FIXME: only signal projectLoaded( const QString& ) in ProjectManager
- QCoreApplication::connect( pm, SIGNAL( projectLoaded() ), &renderer, SLOT( startRender() ) );
- pm->loadProject( app.arguments()[1] );
+ QCoreApplication::connect( p, &Project::projectLoaded, &renderer, &ConsoleRenderer::startRender );
+ p->load( app.arguments()[1] );
#endif
return app.exec();
}
More information about the Vlmc-devel
mailing list