@@ -64,7 +64,6 @@ public: | |||||
Quit the application. | Quit the application. | ||||
This stops the event-loop and closes all Windows. | This stops the event-loop and closes all Windows. | ||||
This function is thread-safe. | This function is thread-safe. | ||||
@note This function is meant for standalones only, *never* call this from plugins. | |||||
*/ | */ | ||||
void quit(); | void quit(); | ||||
@@ -43,8 +43,6 @@ void Application::exec(const uint idleTimeInMs) | |||||
void Application::quit() | void Application::quit() | ||||
{ | { | ||||
DISTRHO_SAFE_ASSERT_RETURN(pData->isStandalone,); | |||||
pData->quit(); | pData->quit(); | ||||
} | } | ||||
@@ -127,8 +127,6 @@ void Application::PrivateData::idle(const uint timeoutInMs) | |||||
void Application::PrivateData::quit() | void Application::PrivateData::quit() | ||||
{ | { | ||||
DISTRHO_SAFE_ASSERT_RETURN(isStandalone,); | |||||
if (! isThisTheMainThread(mainThreadHandle)) | if (! isThisTheMainThread(mainThreadHandle)) | ||||
{ | { | ||||
if (! isQuittingInNextCycle) | if (! isQuittingInNextCycle) | ||||
@@ -202,6 +202,11 @@ public: | |||||
# endif | # endif | ||||
} | } | ||||
~UIVst() | |||||
{ | |||||
fUI.quit(); | |||||
} | |||||
// ------------------------------------------------------------------- | // ------------------------------------------------------------------- | ||||
void idle() | void idle() | ||||
@@ -228,9 +228,7 @@ public: | |||||
void quit() | void quit() | ||||
{ | { | ||||
uiData->window->close(); | uiData->window->close(); | ||||
if (uiData->app.isStandalone()) | |||||
uiData->app.quit(); | |||||
uiData->app.quit(); | |||||
} | } | ||||
// ------------------------------------------------------------------- | // ------------------------------------------------------------------- | ||||