Meson: Fix crash

Amends 4cbdd443fe. The captured pointer died too early.

Change-Id: I82433bee4ee41d913e1cf47db5c9b9446f501520
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2024-01-30 16:32:32 +01:00
parent 208d57e943
commit 3569dbd42e

View File

@@ -25,7 +25,7 @@ namespace MesonProjectManager::Internal {
void setupMesonActions(QObject *guard)
{
Action *buildTargetContextAction = nullptr;
static Action *buildTargetContextAction = nullptr;
const Context projectContext{Constants::Project::ID};