Commit 90c10511 authored by Ing. Jan Trávníček's avatar Ing. Jan Trávníček

make capture of this explicit

parent 383c9fd2
......@@ -101,7 +101,7 @@ void MainWindow::setupMenu() {
auto name = QString::fromStdString(algo.second->getPrettyName());
const auto& fullName = algo.second->getFullName();
auto* action = menu->addAction(name, [=]{ this->setCursorData(fullName); });
auto* action = menu->addAction(name, [this, fullName]{ this->setCursorData(fullName); });
action->setStatusTip(QString::fromStdString(fullName));
action->setToolTip(QString::fromStdString(fullName));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment