From 7f08529a60eda30909b977137d81d4ad75b174ff Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Wed, 5 Jun 2024 13:07:18 +0200 Subject: [PATCH] PE: Remove left-over connect The item view was made read-only and this connect only results in a warning on the command line when double clicking an item. Amends 8ef85e481aa3095667be33b5db34d180cd18be07. Change-Id: I32d6b9d38e2c554fb91f5cbd1f1f5fd1e6c1a394 Reviewed-by: Christian Kandeler --- src/plugins/projectexplorer/environmentwidget.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/plugins/projectexplorer/environmentwidget.cpp b/src/plugins/projectexplorer/environmentwidget.cpp index 973a499ced9..c438b7b1f2c 100644 --- a/src/plugins/projectexplorer/environmentwidget.cpp +++ b/src/plugins/projectexplorer/environmentwidget.cpp @@ -197,10 +197,7 @@ EnvironmentWidget::EnvironmentWidget(QWidget *parent, Type type, QWidget *additi auto horizontalLayout = new QHBoxLayout(); horizontalLayout->setContentsMargins(0, 0, 0, 0); - auto tree = new Utils::TreeView(this); - connect(tree, &QAbstractItemView::activated, - tree, [tree](const QModelIndex &idx) { tree->edit(idx); }); - d->m_environmentView = tree; + d->m_environmentView = new Utils::TreeView(this); d->m_environmentView->setModel(d->m_model); d->m_environmentView->setMinimumHeight(400); d->m_environmentView->setRootIsDecorated(false);