Commit bcb74fa9 authored by Tobias Hunger's avatar Tobias Hunger

Qbs: Fix QbsRunConfiguration setup

Task-number: QBS-349
Task-number: QBS-355
Change-Id: Ibfa88e2d5ec59984c54ae9f69659f231a962a64c
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent 29372a0f
......@@ -196,7 +196,7 @@ QString QbsRunConfiguration::executable() const
QbsProject *pro = static_cast<QbsProject *>(target()->project());
const qbs::ProductData product = findProduct(pro->qbsProjectData(), m_qbsProduct);
if (product.isValid() || !pro->qbsProject())
if (!product.isValid() || !pro->qbsProject())
return QString();
return pro->qbsProject()->targetExecutable(product, installOptions());
......@@ -518,7 +518,7 @@ bool QbsRunConfigurationFactory::canCreate(ProjectExplorer::Target *parent, cons
return false;
QbsProject *project = static_cast<QbsProject *>(parent->project());
return !findProduct(project->qbsProjectData(), productFromId(id)).isValid();
return findProduct(project->qbsProjectData(), productFromId(id)).isValid();
}
ProjectExplorer::RunConfiguration *QbsRunConfigurationFactory::doCreate(ProjectExplorer::Target *parent, const Core::Id id)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment