diff --git a/src/blackcore/application.cpp b/src/blackcore/application.cpp index f74331f9b..0ae3ae972 100644 --- a/src/blackcore/application.cpp +++ b/src/blackcore/application.cpp @@ -963,6 +963,9 @@ namespace BlackCore if (m_shutdownInProgress) { return; } m_shutdownInProgress = true; + // info that we will shutdown + emit this->aboutToShutdown(); + // before marked as shutdown, otherwise URL if (m_networkWatchDog) { diff --git a/src/blackcore/application.h b/src/blackcore/application.h index 2e3926fc6..abf7fbb13 100644 --- a/src/blackcore/application.h +++ b/src/blackcore/application.h @@ -500,6 +500,9 @@ namespace BlackCore //! DB accessibility changed void changedSwiftDbAccessibility(bool accessible, const BlackMisc::Network::CUrl &testedUrl); + //! About to shutdown + void aboutToShutdown(); + protected: //! Setup read/synchronized void setupHandlingIsCompleted(bool available);