Skip to content

Commit ad29929

Browse files
committed
gui: only make a tab for the top block
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
1 parent b6ea273 commit ad29929

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/gui/src/mainWindow.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1637,10 +1637,8 @@ void MainWindow::postReadDb(odb::dbDatabase* db)
16371637
return;
16381638
}
16391639

1640+
// Only create a tab for the top block
16401641
emit blockLoaded(block);
1641-
for (auto child : block->getChildren()) {
1642-
emit blockLoaded(child);
1643-
}
16441642
}
16451643

16461644
void MainWindow::setLogger(utl::Logger* logger)

0 commit comments

Comments
 (0)