From b99b221a6d5c5341185eeb0ee485c9085e628a2c Mon Sep 17 00:00:00 2001 From: James Cotton Date: Fri, 12 Oct 2012 15:15:28 -0500 Subject: [PATCH] Setup Wizard: Trigger the wizard with show() instead of exec() as using exec blocks the main application event loop. --- .../src/plugins/setupwizard/setupwizardplugin.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ground/openpilotgcs/src/plugins/setupwizard/setupwizardplugin.cpp b/ground/openpilotgcs/src/plugins/setupwizard/setupwizardplugin.cpp index d36a747be..8746c2d63 100644 --- a/ground/openpilotgcs/src/plugins/setupwizard/setupwizardplugin.cpp +++ b/ground/openpilotgcs/src/plugins/setupwizard/setupwizardplugin.cpp @@ -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)