From bc58d5938772b196964da9b96aa3a73ae836bb94 Mon Sep 17 00:00:00 2001 From: Michael Carroll Date: Mon, 13 Nov 2023 21:26:00 +0000 Subject: [PATCH] lambda capture Signed-off-by: Michael Carroll --- src/MainWindow_TEST.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MainWindow_TEST.cc b/src/MainWindow_TEST.cc index b223a0654..0d2fc6d81 100644 --- a/src/MainWindow_TEST.cc +++ b/src/MainWindow_TEST.cc @@ -342,7 +342,7 @@ TEST(MainWindowTest, // Access window after it's open bool closed{false}; - QTimer::singleShot(300, App(), [&closed] + QTimer::singleShot(300, App(), [&closed, &app] { auto *win = app.findChild(); ASSERT_NE(nullptr, win);