mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-22 01:34:21 +00:00
Avoided some problems when modal components are left open during shutdown.
This commit is contained in:
parent
593e1c1e65
commit
7091121b2c
1 changed files with 4 additions and 1 deletions
|
|
@ -63,7 +63,9 @@ public:
|
|||
if (isActive)
|
||||
{
|
||||
isActive = false;
|
||||
ModalComponentManager::getInstance()->triggerAsyncUpdate();
|
||||
|
||||
if (ModalComponentManager* mcm = ModalComponentManager::getInstanceWithoutCreating())
|
||||
mcm->triggerAsyncUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -83,6 +85,7 @@ ModalComponentManager::ModalComponentManager()
|
|||
|
||||
ModalComponentManager::~ModalComponentManager()
|
||||
{
|
||||
stack.clear();
|
||||
clearSingletonInstance();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue