From 1f112fb1799290eccceb11f9153bbf5855855046 Mon Sep 17 00:00:00 2001 From: Nav Date: Thu, 23 Sep 2021 21:18:30 +0100 Subject: [PATCH] Focus on register inspection window, upon the user attempting to open an already opened instance --- .../Widgets/TargetRegistersPane/RegisterWidget.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegistersPane/RegisterWidget.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegistersPane/RegisterWidget.cpp index 6f8f22b5..dd4cc204 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegistersPane/RegisterWidget.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegistersPane/RegisterWidget.cpp @@ -110,7 +110,12 @@ void RegisterWidget::openInspectionWindow() { this->inspectWindow->setValue(this->currentRegister->value); } - this->inspectWindow->show(); + if (!this->inspectWindow->isVisible()) { + this->inspectWindow->show(); + + } else { + this->inspectWindow->activateWindow(); + } } }