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();