1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

Setup Wizard: Trigger the wizard with show() instead of exec() as using

exec blocks the main application event loop.
This commit is contained in:
James Cotton 2012-10-12 15:15:28 -05:00 committed by PT_Dreamer
parent ae80370b1d
commit b99b221a6d

View File

@ -82,7 +82,9 @@ void SetupWizardPlugin::shutdown()
void SetupWizardPlugin::showSetupWizard()
{
SetupWizard().exec();
SetupWizard *m_wiz = new SetupWizard();
m_wiz->setAttribute( Qt::WA_DeleteOnClose, true );
m_wiz->show();
}
Q_EXPORT_PLUGIN(SetupWizardPlugin)