From 56fae9e0a86bcf72f4fe566c1ce8ef3a04e98736 Mon Sep 17 00:00:00 2001 From: Nav Date: Sun, 6 Feb 2022 20:29:31 +0000 Subject: [PATCH] Fixed bug with Insight window close event being issued twice --- src/Insight/Insight.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Insight/Insight.cpp b/src/Insight/Insight.cpp index bd98fee1..bf300a3f 100644 --- a/src/Insight/Insight.cpp +++ b/src/Insight/Insight.cpp @@ -155,7 +155,9 @@ namespace Bloom } Logger::info("Shutting down Insight"); - this->mainWindow->close(); + if (this->mainWindow->isVisible()) { + this->mainWindow->close(); + } if (this->workerThread != nullptr && this->workerThread->isRunning()) { this->workerThread->quit();