Made register inspection window a child - it will now close when it's parent is deleted, as it should

This commit is contained in:
Nav
2021-09-23 21:19:47 +01:00
parent 1f112fb179
commit 10b879a964
3 changed files with 12 additions and 6 deletions

View File

@@ -102,7 +102,8 @@ void RegisterWidget::openInspectionWindow() {
this->descriptor,
this->insightWorker,
this->targetState,
this->currentRegister.has_value() ? std::optional(this->currentRegister->value) : std::nullopt
this->currentRegister.has_value() ? std::optional(this->currentRegister->value) : std::nullopt,
this
);
} else {