From b3ca796d977d622083bae9c90bb6497825525bdb Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 27 Feb 2020 08:46:06 +0100 Subject: [PATCH] Qmake: Use buildableFileProFile(node) for Build File action Should be at least theoretically the right one, but is mainly done to always feed a QmakeProFileNode * to the 5-args handleSubDirContextMenu(). In practice it does not seem to impact the current level of brokenness: In case of Build->File with not-synchronized editors the action shows the name of the file selected in the project view, while it actually builds the file in the current editor. Change-Id: I47f8f22eb80be18d1be5997a861cea89bd069d1b Reviewed-by: Christian Kandeler --- src/plugins/qmakeprojectmanager/qmakeprojectmanagerplugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmakeprojectmanager/qmakeprojectmanagerplugin.cpp b/src/plugins/qmakeprojectmanager/qmakeprojectmanagerplugin.cpp index a2ed0c1b956..c0f4a0c9446 100644 --- a/src/plugins/qmakeprojectmanager/qmakeprojectmanagerplugin.cpp +++ b/src/plugins/qmakeprojectmanager/qmakeprojectmanagerplugin.cpp @@ -475,7 +475,7 @@ void QmakeProjectManagerPluginPrivate::buildFile() Project *project = SessionManager::projectForFile(file); if (project && node) - handleSubDirContextMenu(BUILD, true, project, node->parentProjectNode(), node); + handleSubDirContextMenu(BUILD, true, project, buildableFileProFile(node), node); } }