diff --git a/src/Gui/Tree.cpp b/src/Gui/Tree.cpp index 21b6a8784e..d30a1c39df 100644 --- a/src/Gui/Tree.cpp +++ b/src/Gui/Tree.cpp @@ -88,7 +88,6 @@ static TreeWidget* _LastSelectedTreeWidget; const int TreeWidget::DocumentType = 1000; const int TreeWidget::ObjectType = 1001; static bool _DragEventFilter; -static bool _DraggingActive; void TreeParams::onItemBackgroundChanged() { @@ -479,7 +478,7 @@ TreeWidget::TreeWidget(const char* name, QWidget* parent) setupResizableColumn(this); this->header()->setStretchLastSection(false); - QObject::connect(this->header(), &QHeaderView::sectionResized, [this](int idx, int, int newSize) { + QObject::connect(this->header(), &QHeaderView::sectionResized, [](int idx, int, int newSize) { if (idx) TreeParams::setColumnSize2(newSize); else diff --git a/src/Gui/TreeParams.cpp b/src/Gui/TreeParams.cpp index c8ece368bb..467cb76946 100644 --- a/src/Gui/TreeParams.cpp +++ b/src/Gui/TreeParams.cpp @@ -1404,7 +1404,7 @@ void TreeParams::onResizableColumnChanged() { } void TreeParams::onIconSizeChanged() { - auto tree = TreeWidget::instance(); + // auto tree = TreeWidget::instance(); // Commented out temporarily while merging PR #7888 //if (tree) //tree->setIconHeight(TreeParams::getIconSize());