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.
|
||||
|
||||
QString make;
|
||||
if (qmakeBc->subNodeBuild()) {
|
||||
QmakeProFileNode *pro = qmakeBc->subNodeBuild();
|
||||
if (pro && !pro->makefile().isEmpty())
|
||||
if (QmakeProFileNode *pro = qmakeBc->subNodeBuild()) {
|
||||
if (!pro->makefile().isEmpty())
|
||||
make = pro->makefile();
|
||||
else
|
||||
make = "Makefile";
|
||||
|
Reference in New Issue
Block a user