Don't offer Makefile.Debug and Makefile.Release for importing

Task-number: QTCREATORBUG-6562
Change-Id: I1630d7c13ab59d848626a4a4b8fb542765a16d6e
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
Daniel Teske
2011-11-21 17:36:00 +01:00
committed by Tobias Hunger
parent 751ac3fb85
commit d530e8ddb8

View File

@@ -743,6 +743,10 @@ QtVersionManager::MakefileCompatible QtVersionManager::makefileIsFor(const QStri
if (proFile.isEmpty())
return CouldNotParse;
// The Makefile.Debug / Makefile.Release lack a # Command: line
if (findQMakeLine(makefile, QLatin1String("# Command:")).trimmed().isEmpty())
return CouldNotParse;
QString line = findQMakeLine(makefile, QLatin1String("# Project:")).trimmed();
if (line.isEmpty())
return CouldNotParse;