diff options
Diffstat (limited to 'src/lib/corelib/buildgraph/abstractcommandexecutor.cpp')
-rw-r--r-- | src/lib/corelib/buildgraph/abstractcommandexecutor.cpp | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/src/lib/corelib/buildgraph/abstractcommandexecutor.cpp b/src/lib/corelib/buildgraph/abstractcommandexecutor.cpp index 3549d09c4..3560d20f0 100644 --- a/src/lib/corelib/buildgraph/abstractcommandexecutor.cpp +++ b/src/lib/corelib/buildgraph/abstractcommandexecutor.cpp @@ -52,16 +52,23 @@ void AbstractCommandExecutor::start(Transformer *transformer, const AbstractComm { m_transformer = transformer; m_command = cmd; - if (!m_command->isSilent()) { - if (m_command->description().isEmpty()) { - m_logger.printWarning(ErrorInfo(Tr::tr("Command is not marked silent, but has no " - "description."), m_command->codeLocation())); - } else { - emit reportCommandDescription(m_command->highlight(), m_command->description()); - } - } + doReportCommandDescription(); doStart(); } +void AbstractCommandExecutor::doReportCommandDescription() +{ + if (m_command->isSilent()) + return; + + if (m_command->description().isEmpty()) { + m_logger.printWarning( + ErrorInfo(Tr::tr("Command is not marked silent, but has no description."), + m_command->codeLocation())); + } else { + emit reportCommandDescription(m_command->highlight(), m_command->description()); + } +} + } // namespace Internal } // namespace qbs |