summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/sourcefileshandler.cpp
diff options
context:
space:
mode:
authorhjk <hjk@theqtcompany.com>2016-07-20 08:00:59 +0200
committerhjk <hjk@qt.io>2016-07-20 06:30:48 +0000
commitbe684dc754701f690fb28d1ce70164fa71d26f3d (patch)
treeb097ad12a6771b5d19a916dae8a15ee2cb104bab /src/plugins/debugger/sourcefileshandler.cpp
parente08c1a39e715f6c1720f197b8804544e925e08d7 (diff)
downloadqt-creator-be684dc754701f690fb28d1ce70164fa71d26f3d.tar.gz
Debugger: Make MSVC happy and capture 'this'
Change-Id: I765bc5b5c739bfeae70c09bd997db430f84c5aca Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/debugger/sourcefileshandler.cpp')
-rw-r--r--src/plugins/debugger/sourcefileshandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/debugger/sourcefileshandler.cpp b/src/plugins/debugger/sourcefileshandler.cpp
index 49bba486ee..ba39fbd1b1 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<void()> &onTriggered) {
+ auto addAction = [this, menu](const QString &display, bool on, const std::function<void()> &onTriggered) {
QAction *act = menu->addAction(display);
act->setEnabled(on);
QObject::connect(act, &QAction::triggered, onTriggered);