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 <christian.kandeler@qt.io>
This commit is contained in:
hjk
2020-02-27 08:46:06 +01:00
parent a84e626b67
commit b3ca796d97

View File

@@ -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);
}
}