From d530e8ddb888fde70863f303843b512aa3f7762a Mon Sep 17 00:00:00 2001 From: Daniel Teske Date: Mon, 21 Nov 2011 17:36:00 +0100 Subject: Don't offer Makefile.Debug and Makefile.Release for importing Task-number: QTCREATORBUG-6562 Change-Id: I1630d7c13ab59d848626a4a4b8fb542765a16d6e Reviewed-by: Eike Ziller Reviewed-by: Tobias Hunger --- src/plugins/qtsupport/qtversionmanager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/qtsupport/qtversionmanager.cpp b/src/plugins/qtsupport/qtversionmanager.cpp index 8c7cfbe0f8..b33a8ee27b 100644 --- a/src/plugins/qtsupport/qtversionmanager.cpp +++ b/src/plugins/qtsupport/qtversionmanager.cpp @@ -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; -- cgit v1.2.1