Skip to content

Commit

Permalink
Another attempt to fix commsdsl2tools_qt protocol configuration parsing.
Browse files Browse the repository at this point in the history
  • Loading branch information
arobenko committed Feb 25, 2024
1 parent b993c53 commit 7383e6d
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions app/commsdsl2tools_qt/src/ToolsQtGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,8 @@ const std::string& ToolsQtGenerator::toolsMinCcToolsQtVersion()
bool ToolsQtGenerator::prepareImpl()
{
chooseProtocolSchema();
bool result =
Base::prepareImpl() &&
toolsPrepareDefaultInterfaceInternal() &&
toolsPrepareSelectedInterfacesInternal() &&
toolsPrepareSelectedFramesInternal();

if (!result) {
if ((!Base::prepareImpl()) ||
(!toolsPrepareDefaultInterfaceInternal())) {
return false;
}

Expand Down Expand Up @@ -192,6 +187,14 @@ bool ToolsQtGenerator::prepareImpl()
m_plugins.push_back(std::make_unique<ToolsQtPlugin>(*this, info.m_frame, info.m_interface, info.m_name, info.m_desc));
}

bool result =
toolsPrepareSelectedInterfacesInternal() &&
toolsPrepareSelectedFramesInternal();

if (!result) {
return false;
}

return
std::all_of(
m_plugins.begin(), m_plugins.end(),
Expand Down

0 comments on commit 7383e6d

Please sign in to comment.