diff options
author | hjk <hjk@theqtcompany.com> | 2016-07-20 08:00:59 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2016-07-20 06:30:48 +0000 |
commit | be684dc754701f690fb28d1ce70164fa71d26f3d (patch) | |
tree | b097ad12a6771b5d19a916dae8a15ee2cb104bab /src/plugins | |
parent | e08c1a39e715f6c1720f197b8804544e925e08d7 (diff) | |
download | qt-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')
-rw-r--r-- | src/plugins/debugger/sourcefileshandler.cpp | 2 |
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); |