forked from qt-creator/qt-creator
ProjectExplorer: Fix compile for older gcc/Qt5.6
Change-Id: I3b5728797fe1c9f1508f94ea9ea9e66773061a6b Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
committed by
Tim Jenssen
parent
6979a8f2f5
commit
0480dbd3a8
@@ -3110,7 +3110,7 @@ void ProjectExplorerPluginPrivate::updateLocationSubMenus()
|
||||
for (const FolderNode::LocationInfo &li : locations) {
|
||||
const int line = li.line;
|
||||
const Utils::FileName path = li.path;
|
||||
QAction *action = new QAction(li.displayName);
|
||||
QAction *action = new QAction(li.displayName, nullptr);
|
||||
connect(action, &QAction::triggered, this, [line, path]() {
|
||||
Core::EditorManager::openEditorAt(path.toString(), line);
|
||||
});
|
||||
|
Reference in New Issue
Block a user