Skip to content

Commit 01c9702

Browse files
committed
gui: show masters in site properties
Signed-off-by: Peter Gadfort <[email protected]>
1 parent 0b2b56c commit 01c9702

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/gui/src/dbDescriptors.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4186,6 +4186,19 @@ Descriptor::Properties DbSiteDescriptor::getDBProperties(
41864186
}
41874187
props.push_back({"Symmetry", symmetry});
41884188

4189+
auto* gui = Gui::get();
4190+
SelectionSet masters;
4191+
for (auto* lib : db_->getLibs()) {
4192+
for (auto* master : lib->getMasters()) {
4193+
if (master->getSite() == site) {
4194+
masters.insert(gui->makeSelected(master));
4195+
}
4196+
}
4197+
}
4198+
if (!masters.empty()) {
4199+
props.push_back({"Masters", masters});
4200+
}
4201+
41894202
return props;
41904203
}
41914204

0 commit comments

Comments
 (0)