Hi,
I was looking at the code of the Plugin Host application, and got intrigued by the following lines:
void PluginWindow::closeAllCurrentlyOpenWindows()
{
if (activePluginWindows.size() > 0)
{
for (int i = activePluginWindows.size(); --i >= 0;)
delete activePluginWindows.getUnchecked(i);
Component dummyModalComp;
dummyModalComp.enterModalState();
MessageManager::getInstance()->runDispatchLoopUntil (50);
}
}
Why is there a dummy modal component here? And is it necessary to run a few dispatch loops when closing plugin windows?
Cheers,