From 58bdbac7b6e390547d5a792740355c53313d6de1 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Wed, 16 May 2018 21:24:52 +0200 Subject: [PATCH] Ref T270, "about to shutdown" in CApplication --- src/blackcore/application.cpp | 3 +++ src/blackcore/application.h | 3 +++ 2 files changed, 6 insertions(+) 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);