aboutsummaryrefslogtreecommitdiffstats
path: root/gui/designwidget.cc
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2019-02-07 17:25:14 +0100
committerMiodrag Milanovic <mmicko@gmail.com>2019-02-07 17:25:14 +0100
commitc6604a45826c690de3fcd09b46a027904ecff7cd (patch)
treeae81cc2ffde4eb09a07e53e95e993d875698e65e /gui/designwidget.cc
parent564a7e27b125302101c76f5b347880df0381a5ad (diff)
downloadnextpnr-c6604a45826c690de3fcd09b46a027904ecff7cd.tar.gz
nextpnr-c6604a45826c690de3fcd09b46a027904ecff7cd.tar.bz2
nextpnr-c6604a45826c690de3fcd09b46a027904ecff7cd.zip
Fix reading conflicting wire in GUI for pips, fixes #225
Diffstat (limited to 'gui/designwidget.cc')
-rw-r--r--gui/designwidget.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/gui/designwidget.cc b/gui/designwidget.cc
index 235dd2cb..fc99cd14 100644
--- a/gui/designwidget.cc
+++ b/gui/designwidget.cc
@@ -706,8 +706,12 @@ void DesignWidget::onSelectionChanged(int num, const QItemSelection &, const QIt
addProperty(topItem, QVariant::String, "Type", ctx->getPipType(pip).c_str(ctx));
addProperty(topItem, QVariant::Bool, "Available", ctx->checkPipAvail(pip));
addProperty(topItem, QVariant::String, "Bound Net", ctx->nameOf(ctx->getBoundPipNet(pip)), ElementType::NET);
- addProperty(topItem, QVariant::String, "Conflicting Wire",
- ctx->getWireName(ctx->getConflictingPipWire(pip)).c_str(ctx), ElementType::WIRE);
+ if (ctx->getConflictingPipWire(pip) != WireId()) {
+ addProperty(topItem, QVariant::String, "Conflicting Wire",
+ ctx->getWireName(ctx->getConflictingPipWire(pip)).c_str(ctx), ElementType::WIRE);
+ } else {
+ addProperty(topItem, QVariant::String, "Conflicting Wire", "", ElementType::NONE);
+ }
addProperty(topItem, QVariant::String, "Conflicting Net", ctx->nameOf(ctx->getConflictingPipNet(pip)),
ElementType::NET);
addProperty(topItem, QVariant::String, "Src Wire", ctx->getWireName(ctx->getPipSrcWire(pip)).c_str(ctx),