aboutsummaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorMiodrag Milanović <mmicko@gmail.com>2019-03-12 19:17:22 +0100
committerGitHub <noreply@github.com>2019-03-12 19:17:22 +0100
commitcadbf42054f224d84e5c5800baf82c0fa3a2a6db (patch)
treef5c1a04181b008dcc2ce19fbaa1ad6b54e7121e7 /gui
parent97993e76eabb6ac32c50871aa618d53b35118736 (diff)
parenta0ad5bc306ce22711cc293c76cb81e1fe89ba81f (diff)
downloadnextpnr-cadbf42054f224d84e5c5800baf82c0fa3a2a6db.tar.gz
nextpnr-cadbf42054f224d84e5c5800baf82c0fa3a2a6db.tar.bz2
nextpnr-cadbf42054f224d84e5c5800baf82c0fa3a2a6db.zip
Merge pull request #249 from koriakin/gui-tab-fix
gui: Fix Cells/Nets tab contents.
Diffstat (limited to 'gui')
-rw-r--r--gui/designwidget.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gui/designwidget.cc b/gui/designwidget.cc
index fc99cd14..1617340b 100644
--- a/gui/designwidget.cc
+++ b/gui/designwidget.cc
@@ -444,9 +444,9 @@ TreeModel::Model *DesignWidget::getTreeByElementType(ElementType type)
return treeModel[1];
if (type == ElementType::PIP)
return treeModel[2];
- if (type == ElementType::NET)
- return treeModel[3];
if (type == ElementType::CELL)
+ return treeModel[3];
+ if (type == ElementType::NET)
return treeModel[4];
return nullptr;
}
@@ -460,9 +460,9 @@ int DesignWidget::getIndexByElementType(ElementType type)
return 1;
if (type == ElementType::PIP)
return 2;
- if (type == ElementType::NET)
- return 3;
if (type == ElementType::CELL)
+ return 3;
+ if (type == ElementType::NET)
return 4;
if (type == ElementType::GROUP)
return 5;