close the inspector when the universe disapears
This commit is contained in:
parent
0fb5db0574
commit
7a877f97ad
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue