[vlmc-devel] commit: Check if the project needs to be restored, even if the wizard is deactivated. (Hugo Beauzee-Luyssen )
git at videolan.org
git at videolan.org
Tue Mar 16 22:51:49 CET 2010
vlmc | branch: master | Hugo Beauzee-Luyssen <beauze.h at gmail.com> | Tue Mar 16 22:51:33 2010 +0100| [09b2dc62399102e8e17d69da25ba10626d4ca76f] | committer: Hugo Beauzee-Luyssen
Check if the project needs to be restored, even if the wizard is deactivated.
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=09b2dc62399102e8e17d69da25ba10626d4ca76f
---
src/Gui/MainWindow.cpp | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp
index 38cb3d0..8ce38fd 100644
--- a/src/Gui/MainWindow.cpp
+++ b/src/Gui/MainWindow.cpp
@@ -124,13 +124,14 @@ MainWindow::MainWindow( QWidget *parent ) :
m_pWizard->setModal( true );
+#ifdef WITH_CRASHHANDLER
+ if ( restoreSession() == false )
+ return ;
+#endif
QSettings s;
+
if ( s.value( "ShowWizardStartup", true ).toBool() )
{
-#ifdef WITH_CRASHHANDLER
- if ( restoreSession() == false )
- return ;
-#endif
//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