| @@ -73,7 +73,7 @@ public: | |||||
| Returning true means there's no event-loop running at the moment (or it's just about to stop). | Returning true means there's no event-loop running at the moment (or it's just about to stop). | ||||
| This function is thread-safe. | This function is thread-safe. | ||||
| */ | */ | ||||
| bool isQuiting() const noexcept; | |||||
| bool isQuitting() const noexcept; | |||||
| /** | /** | ||||
| Check if the application is standalone, otherwise running as a module or plugin. | Check if the application is standalone, otherwise running as a module or plugin. | ||||
| @@ -48,7 +48,7 @@ void Application::quit() | |||||
| pData->quit(); | pData->quit(); | ||||
| } | } | ||||
| bool Application::isQuiting() const noexcept | |||||
| bool Application::isQuitting() const noexcept | |||||
| { | { | ||||
| return pData->isQuitting || pData->isQuittingInNextCycle; | return pData->isQuitting || pData->isQuittingInNextCycle; | ||||
| } | } | ||||
| @@ -77,10 +77,10 @@ public: | |||||
| return isVisible(); | return isVisible(); | ||||
| } | } | ||||
| virtual bool isQuiting() const | |||||
| virtual bool isQuitting() const | |||||
| { | { | ||||
| if (ext.inUse) | if (ext.inUse) | ||||
| return ext.isQuiting; | |||||
| return ext.isQuitting; | |||||
| return !isVisible(); | return !isVisible(); | ||||
| } | } | ||||
| @@ -292,7 +292,7 @@ protected: | |||||
| void terminateAndWaitForExternalProcess() | void terminateAndWaitForExternalProcess() | ||||
| { | { | ||||
| ext.isQuiting = true; | |||||
| ext.isQuitting = true; | |||||
| ext.terminateAndWait(); | ext.terminateAndWait(); | ||||
| } | } | ||||
| @@ -334,12 +334,12 @@ private: | |||||
| struct ExternalProcess { | struct ExternalProcess { | ||||
| bool inUse; | bool inUse; | ||||
| bool isQuiting; | |||||
| bool isQuitting; | |||||
| mutable pid_t pid; | mutable pid_t pid; | ||||
| ExternalProcess() | ExternalProcess() | ||||
| : inUse(false), | : inUse(false), | ||||
| isQuiting(false), | |||||
| isQuitting(false), | |||||
| pid(0) {} | pid(0) {} | ||||
| bool isRunning() const noexcept | bool isRunning() const noexcept | ||||
| @@ -214,7 +214,7 @@ public: | |||||
| uiData->app.idle(); | uiData->app.idle(); | ||||
| ui->uiIdle(); | ui->uiIdle(); | ||||
| return ! uiData->app.isQuiting(); | |||||
| return ! uiData->app.isQuitting(); | |||||
| } | } | ||||
| #endif | #endif | ||||
| @@ -253,7 +253,7 @@ public: | |||||
| { | { | ||||
| uiData->window->setVisible(yesNo); | uiData->window->setVisible(yesNo); | ||||
| return ! uiData->app.isQuiting(); | |||||
| return ! uiData->app.isQuitting(); | |||||
| } | } | ||||
| #if !DISTRHO_PLUGIN_HAS_EXTERNAL_UI | #if !DISTRHO_PLUGIN_HAS_EXTERNAL_UI | ||||
| @@ -67,9 +67,9 @@ struct PluginApplication | |||||
| idleCallback = cb; | idleCallback = cb; | ||||
| } | } | ||||
| bool isQuiting() const noexcept | |||||
| bool isQuitting() const noexcept | |||||
| { | { | ||||
| return ui->isQuiting(); | |||||
| return ui->isQuitting(); | |||||
| } | } | ||||
| bool isStandalone() const noexcept | bool isStandalone() const noexcept | ||||
| @@ -85,7 +85,7 @@ struct PluginApplication | |||||
| idleCallback->idleCallback(); | idleCallback->idleCallback(); | ||||
| } | } | ||||
| if (! ui->isQuiting()) | |||||
| if (! ui->isQuitting()) | |||||
| ui->close(); | ui->close(); | ||||
| } | } | ||||