From 66d0c35dc780459be0253a990abe2c2afa8fa814 Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Sat, 2 Apr 2022 13:19:57 -0500 Subject: [PATCH] Gui: Fix pref pack apply crash (Fixes #6702) --- src/Gui/DlgGeneralImp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gui/DlgGeneralImp.cpp b/src/Gui/DlgGeneralImp.cpp index 80df23edae..2583b59241 100644 --- a/src/Gui/DlgGeneralImp.cpp +++ b/src/Gui/DlgGeneralImp.cpp @@ -388,7 +388,7 @@ void DlgGeneralImp::recreatePreferencePackMenu() ui->PreferencePacks->setItem(row, 1, kind); auto button = new QPushButton(icon, tr("Apply")); button->setToolTip(tr("Apply the %1 preference pack").arg(QString::fromStdString(pack.first))); - connect(button, &QPushButton::clicked, this, [this, &pack]() { onLoadPreferencePackClicked(pack.first); }); + connect(button, &QPushButton::clicked, this, [this, pack]() { onLoadPreferencePackClicked(pack.first); }); ui->PreferencePacks->setCellWidget(row, 2, button); ++row; }