Maemo: Be more tolerant in case of missing tool chain.

(cherry picked from commit ca8b342a17)
This commit is contained in:
Christian Kandeler
2010-09-27 17:31:53 +02:00
committed by hjk
parent b57461c5c6
commit 17ce6be56a

View File

@@ -147,7 +147,10 @@ bool MaemoTemplatesManager::createDebianTemplatesIfNecessary(const ProjectExplor
Q_ASSERT_X(qt4Target, Q_FUNC_INFO, "Target ID does not match actual type.");
const MaemoToolChain * const tc
= dynamic_cast<MaemoToolChain *>(qt4Target->activeBuildConfiguration()->toolChain());
Q_ASSERT_X(tc, Q_FUNC_INFO, "Maemo target has no Maemo toolchain.");
if (!tc) {
qDebug("Maemo target has no Maemo toolchain.");
return false;
}
if (!MaemoPackageCreationStep::preparePackagingProcess(&dh_makeProc, tc,
projectDir.path(), &error)) {
raiseError(error);