forked from qt-creator/qt-creator
Debugger: Make MSVC happy and capture 'this'
Change-Id: I765bc5b5c739bfeae70c09bd997db430f84c5aca Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -121,7 +121,7 @@ bool SourceFilesHandler::setData(const QModelIndex &idx, const QVariant &data, i
|
|||||||
QModelIndex index = idx.sibling(idx.row(), 0);
|
QModelIndex index = idx.sibling(idx.row(), 0);
|
||||||
QString name = index.data().toString();
|
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);
|
QAction *act = menu->addAction(display);
|
||||||
act->setEnabled(on);
|
act->setEnabled(on);
|
||||||
QObject::connect(act, &QAction::triggered, onTriggered);
|
QObject::connect(act, &QAction::triggered, onTriggered);
|
||||||
|
Reference in New Issue
Block a user