[vlmc-devel] commit: Don't show the wizzard when loading a project from the command line . (Hugo Beauzee-Luyssen )
git at videolan.org
git at videolan.org
Sat Mar 13 15:42:25 CET 2010
vlmc | branch: master | Hugo Beauzee-Luyssen <beauze.h at gmail.com> | Sat Mar 13 15:35:10 2010 +0100| [d489b50e4a54a8796d55993cba3a2bd753f60d95] | committer: Hugo Beauzee-Luyssen
Don't show the wizzard when loading a project from the command line.
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=d489b50e4a54a8796d55993cba3a2bd753f60d95
---
src/Gui/MainWindow.cpp | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp
index 32070e1..74e115e 100644
--- a/src/Gui/MainWindow.cpp
+++ b/src/Gui/MainWindow.cpp
@@ -128,10 +128,12 @@ MainWindow::MainWindow( QWidget *parent ) :
if ( s.value( "ShowWizardStartup", true ).toBool() )
{
#ifdef WITH_CRASHHANDLER
- if ( restoreSession() == false )
- return ;
+ if ( restoreSession() == false )
+ return ;
#endif
- m_pWizard->show();
+ //If a project was opened from the command line: don't show the wizzard.
+ if ( qApp->arguments().size() == 1 )
+ m_pWizard->show();
}
}
More information about the Vlmc-devel
mailing list