SDKtool: Default to C++ for newly added toolchains without a language

Change-Id: I0002c0e0a81fd44064931a437f5c4b1e3095586c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Tobias Hunger
2016-12-12 15:21:35 +01:00
parent 0e6c9d26f1
commit 3840685998

View File

@@ -140,8 +140,10 @@ bool AddToolChainOperation::setArguments(const QStringList &args)
if (m_id.isEmpty()) if (m_id.isEmpty())
std::cerr << "No id given for tool chain." << std::endl; std::cerr << "No id given for tool chain." << std::endl;
if (m_languageId.isEmpty()) if (m_languageId.isEmpty()) {
std::cerr << "No language id given for tool chain." << std::endl; std::cerr << "No language id given for tool chain." << std::endl;
m_languageId = "2";
}
if (m_displayName.isEmpty()) if (m_displayName.isEmpty())
std::cerr << "No name given for tool chain." << std::endl; std::cerr << "No name given for tool chain." << std::endl;
if (m_path.isEmpty()) if (m_path.isEmpty())