Skip to content

Commit

Permalink
Change lambda to capture by value
Browse files Browse the repository at this point in the history
For whatever reason Mac needs this instead of by reference
  • Loading branch information
Admiral-Fish committed Jan 7, 2022
1 parent 5524510 commit 3ab277f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Forms/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit 3ab277f

Please sign in to comment.