forked from qt-creator/qt-creator
Core: Fix compilation with gcc 4.7
mainwindow.cpp:491:77: error: 'this' was not captured for this lambda function
Broken by c0952e22f7.
Change-Id: I6fd9b6fb021c21ccec2b15695e07d1af8284fe2b
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
committed by
Eike Ziller
parent
4a8a7f22b4
commit
08d94196fb
@@ -487,7 +487,7 @@ void MainWindow::registerDefaultActions()
|
||||
cmd = ActionManager::registerAction(m_newAction, Constants::NEW);
|
||||
cmd->setDefaultKeySequence(QKeySequence::New);
|
||||
mfile->addAction(cmd, Constants::G_FILE_NEW);
|
||||
connect(m_newAction, &QAction::triggered, this, []() {
|
||||
connect(m_newAction, &QAction::triggered, this, [this]() {
|
||||
ICore::showNewItemDialog(tr("New File or Project", "Title of dialog"),
|
||||
IWizardFactory::allWizardFactories(), QString());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user