1
0
Fork 0

close the inspector when the universe disapears

This commit is contained in:
Kevin Matz 2022-12-03 11:04:17 -05:00
parent 0fb5db0574
commit 7a877f97ad
1 changed files with 1 additions and 0 deletions

View File

@ -219,6 +219,7 @@ void MultiverseView::createEditor(const QModelIndex &index)
auto view = new UniverseView(this, univ);
mInspectors.insert(view);
connect(view, &QObject::destroyed, this, [this, view](){mInspectors.remove(view);});
connect(univ, &QObject::destroyed, view, &QMainWindow::close);
view->setAttribute(Qt::WA_DeleteOnClose, true);
view->show();
return;