forked from qt-creator/qt-creator
QmakeProjectManager: Simplify makefile extraction logic a bit
Change-Id: I7b28bb1889e243e390c705d66cf460d33299b3d1 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -198,9 +198,8 @@ bool QMakeStep::init()
|
|||||||
// perspective it is local.
|
// perspective it is local.
|
||||||
|
|
||||||
QString make;
|
QString make;
|
||||||
if (qmakeBc->subNodeBuild()) {
|
if (QmakeProFileNode *pro = qmakeBc->subNodeBuild()) {
|
||||||
QmakeProFileNode *pro = qmakeBc->subNodeBuild();
|
if (!pro->makefile().isEmpty())
|
||||||
if (pro && !pro->makefile().isEmpty())
|
|
||||||
make = pro->makefile();
|
make = pro->makefile();
|
||||||
else
|
else
|
||||||
make = "Makefile";
|
make = "Makefile";
|
||||||
|
Reference in New Issue
Block a user