Final clean up for pull request

Signed-off-by: Ice Yeti <101294194+IceYetiWins@users.noreply.github.com>
This commit is contained in:
Ice Yeti 2026-06-14 17:23:10 -04:00 committed by Ice Yeti
parent cb105b720b
commit 08d9e57d96
10 changed files with 44 additions and 44 deletions

View file

@ -207,13 +207,13 @@ void InstanceView::updateGeometries()
viewport()->update();
}
void InstanceView::selectInstance(BaseInstance* instance)
void InstanceView::selectInstance(const BaseInstance* instance) const
{
QModelIndex index;
for (int row = 0; row < model()->rowCount(); row++) {
for (int j = 0; j < model()->columnCount(); j++) {
auto testIndex = model()->index(row, j);
for (int col = 0; col < model()->columnCount(); col++) {
auto testIndex = model()->index(row, col);
if (testIndex.data(InstanceList::InstanceIDRole).toString() == instance->id()) {
index = testIndex;
}