Commit cb3d9120 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen
Browse files

Don't ask if a session should be restored if crash handler is off.

parent fc5fab2f
...@@ -123,12 +123,16 @@ MainWindow::MainWindow( QWidget *parent ) : ...@@ -123,12 +123,16 @@ MainWindow::MainWindow( QWidget *parent ) :
m_pWizard = new ProjectWizard( this ); m_pWizard = new ProjectWizard( this );
m_pWizard->setModal( true ); m_pWizard->setModal( true );
#ifdef WITH_CRASHHANDLER
QSettings s; QSettings s;
if ( s.value( "ShowWizardStartup", true ).toBool() && if ( s.value( "ShowWizardStartup", true ).toBool() &&
restoreSession() == false ) restoreSession() == false )
{ {
m_pWizard->show(); m_pWizard->show();
} }
#else
m_pWizard->show();
#endif
} }
MainWindow::~MainWindow() MainWindow::~MainWindow()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment