diff --git a/src/lib_gui/qt/window/project_wizzard/QtProjectWizzardContentPaths.cpp b/src/lib_gui/qt/window/project_wizzard/QtProjectWizzardContentPaths.cpp index 61cfff6f..c0b994b0 100644 --- a/src/lib_gui/qt/window/project_wizzard/QtProjectWizzardContentPaths.cpp +++ b/src/lib_gui/qt/window/project_wizzard/QtProjectWizzardContentPaths.cpp @@ -622,13 +622,13 @@ void QtProjectWizzardContentPathsHeaderSearch::validateIncludesButtonClicked() { // TODO: regard Force Includes here, too! m_window->saveContent(); - - std::shared_ptr pathSettings = std::dynamic_pointer_cast(m_settings); - std::shared_ptr excludeFilterSettings = std::dynamic_pointer_cast(m_settings); - - if (pathSettings && excludeFilterSettings) // FIXME: pass msettings as required type + + std::thread([&]() { - std::thread([&]() + std::shared_ptr pathSettings = std::dynamic_pointer_cast(m_settings); + std::shared_ptr excludeFilterSettings = std::dynamic_pointer_cast(m_settings); + + if (pathSettings && excludeFilterSettings) // FIXME: pass msettings as required type { std::vector unresolvedIncludes; { @@ -683,8 +683,8 @@ void QtProjectWizzardContentPathsHeaderSearch::validateIncludesButtonClicked() } } m_showValidationResultFunctor(unresolvedIncludes); - }).detach(); - } + } + }).detach(); }