From a8eadb5ba26013f9ec732f431e349fcbcfc8fbe9 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sat, 21 Jul 2018 13:53:29 +0200 Subject: Fix minor issue in GUI Wire properties Signed-off-by: Clifford Wolf --- gui/designwidget.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/designwidget.cc b/gui/designwidget.cc index c40e58d3..a59307f0 100644 --- a/gui/designwidget.cc +++ b/gui/designwidget.cc @@ -537,7 +537,7 @@ void DesignWidget::onItemSelectionChanged() } int counter = 0; - QtProperty *pipsDownItem = addSubGroup(downhillItem, "Pips Downhill"); + QtProperty *pipsDownItem = addSubGroup(topItem, "Pips Downhill"); for (const auto &item : ctx->getPipsDownhill(wire)) { addProperty(pipsDownItem, QVariant::String, "", ctx->getPipName(item).c_str(ctx), ElementType::PIP); counter++; @@ -548,7 +548,7 @@ void DesignWidget::onItemSelectionChanged() } counter = 0; - QtProperty *pipsUpItem = addSubGroup(downhillItem, "Pips Uphill"); + QtProperty *pipsUpItem = addSubGroup(topItem, "Pips Uphill"); for (const auto &item : ctx->getPipsUphill(wire)) { addProperty(pipsUpItem, QVariant::String, "", ctx->getPipName(item).c_str(ctx), ElementType::PIP); counter++; -- cgit v1.2.3