I’m still not sure what’s happening. I don’t believe anything else is becoming modal after the creation of this dialog. What I know is that the currentlyModalFlag is being set in the call to runModalLoop(), but that by the time the OK button in my dialog is clicked, the dialog is no longer considered modal.
I’m going to post the calling code, which I think I stole from a juce example:
DialogWindow theDialog (T("My dialog"), Colours::white, false);
theDialog.setContentComponent (&theDialogPane, true, true);
theDialog.centreAroundComponent (NULL, theDialog.getWidth(), theDialog.getHeight());
theDialog.setResizable (false, false);
theDialog.setContentComponent (0, false);
I put breakpoints on the Component::enterModalState(), which is the only place I thought the currentlyModalFlag could be set, but it doesn’t get hit by any other component.