forked from qt-creator/qt-creator
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:
@@ -140,8 +140,10 @@ bool AddToolChainOperation::setArguments(const QStringList &args)
|
||||
|
||||
if (m_id.isEmpty())
|
||||
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;
|
||||
m_languageId = "2";
|
||||
}
|
||||
if (m_displayName.isEmpty())
|
||||
std::cerr << "No name given for tool chain." << std::endl;
|
||||
if (m_path.isEmpty())
|
||||
|
Reference in New Issue
Block a user