1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00
This commit is contained in:
jules 2007-07-13 11:11:55 +00:00
parent f475ec19cd
commit 16719685c7
16 changed files with 87 additions and 66 deletions

View file

@ -244,6 +244,10 @@ public:
{
PopupMenu::dismissAllActiveMenus();
Component* const modalComponent = Component::getCurrentlyModalComponent();
if (modalComponent != 0)
modalComponent->exitModalState (0);
filter->editorBeingDeleted (editorComp);
deleteAndZero (editorComp);
deleteAndZero (wrapper);

View file

@ -901,15 +901,19 @@ public:
const MessageManagerLock mml;
#endif
Component* modalComponent = Component::getCurrentlyModalComponent();
if (modalComponent != 0)
modalComponent->exitModalState (0);
if (editorComp != 0)
{
Component* const modalComponent = Component::getCurrentlyModalComponent();
if (modalComponent != 0)
modalComponent->exitModalState (0);
filter->editorBeingDeleted (editorComp->getEditorComp());
deleteAndZero (editorComp);
// there's some kind of component currently modal, but the host
// is trying to delete our plugin. You should try to avoid this happening..
jassert (Component::getCurrentlyModalComponent() == 0);
}
#if JUCE_MAC || JUCE_LINUX
@ -917,10 +921,6 @@ public:
#endif
recursionCheck = false;
// there's some kind of component currently modal, but the host
// is trying to delete our plugin. You should try to avoid this happening..
jassert (Component::getCurrentlyModalComponent() == 0);
}
VstIntPtr dispatcher (VstInt32 opCode, VstInt32 index, VstIntPtr value, void* ptr, float opt)