From 3ab277fde6472922fa8b2b978826471b85632f7d Mon Sep 17 00:00:00 2001 From: Admiral-Fish Date: Thu, 6 Jan 2022 18:09:26 -0700 Subject: [PATCH] Change lambda to capture by value For whatever reason Mac needs this instead of by reference --- Source/Forms/MainWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Forms/MainWindow.cpp b/Source/Forms/MainWindow.cpp index 37ea7ef1d..171f8d850 100644 --- a/Source/Forms/MainWindow.cpp +++ b/Source/Forms/MainWindow.cpp @@ -77,7 +77,7 @@ MainWindow::MainWindow(bool profile, QWidget *parent) : QMainWindow(parent), ui( setupModels(); - QTimer::singleShot(1000, [this, &profile] { + QTimer::singleShot(1000, [this, profile] { if (!profile) { QMessageBox message(QMessageBox::Warning, tr("Unable to locate profiles"),