From be684dc754701f690fb28d1ce70164fa71d26f3d Mon Sep 17 00:00:00 2001 From: hjk Date: Wed, 20 Jul 2016 08:00:59 +0200 Subject: [PATCH] Debugger: Make MSVC happy and capture 'this' Change-Id: I765bc5b5c739bfeae70c09bd997db430f84c5aca Reviewed-by: Christian Stenger --- src/plugins/debugger/sourcefileshandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/debugger/sourcefileshandler.cpp b/src/plugins/debugger/sourcefileshandler.cpp index 49bba486eea..ba39fbd1b12 100644 --- a/src/plugins/debugger/sourcefileshandler.cpp +++ b/src/plugins/debugger/sourcefileshandler.cpp @@ -121,7 +121,7 @@ bool SourceFilesHandler::setData(const QModelIndex &idx, const QVariant &data, i QModelIndex index = idx.sibling(idx.row(), 0); QString name = index.data().toString(); - auto addAction = [menu](const QString &display, bool on, const std::function &onTriggered) { + auto addAction = [this, menu](const QString &display, bool on, const std::function &onTriggered) { QAction *act = menu->addAction(display); act->setEnabled(on); QObject::connect(act, &QAction::triggered, onTriggered);