aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/qbs/commandlinefrontend.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/qbs/commandlinefrontend.cpp')
-rw-r--r--src/app/qbs/commandlinefrontend.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/app/qbs/commandlinefrontend.cpp b/src/app/qbs/commandlinefrontend.cpp
index e724317a1..0a4b50dc6 100644
--- a/src/app/qbs/commandlinefrontend.cpp
+++ b/src/app/qbs/commandlinefrontend.cpp
@@ -257,17 +257,17 @@ void CommandLineFrontend::handleProjectsResolved()
void CommandLineFrontend::makeClean()
{
+ const Project::CleanType cleanType = m_parser.cleanAll()
+ ? Project::CleanupAll : Project::CleanupTemporaries;
if (m_parser.products().isEmpty()) {
foreach (const Project &project, m_projects) {
- m_buildJobs << project.cleanAllProducts(m_parser.buildOptions(),
- Project::CleanupTemporaries, this);
+ m_buildJobs << project.cleanAllProducts(m_parser.buildOptions(), cleanType, this);
}
} else {
const ProductMap &products = productsToUse();
for (ProductMap::ConstIterator it = products.begin(); it != products.end(); ++it) {
m_buildJobs << it.key().cleanSomeProducts(it.value(), m_parser.buildOptions(),
- Project::CleanupTemporaries, this);
-
+ cleanType, this);
}
}
connectBuildJobs();