Pop-up menus dismissed immediately in EDIUS


#1

We’re struggling with a pop-up menu problem in our plug-ins when using them in EDIUS 8. The pop-ups are dismissed immediately in the checkButtonState method because the doesAnyJuceCompHaveFocus method returns false (which is a result of Process::isForegroundProcess() returning false). We can fix the issue easily by changing the following (in PopupMenu::showWithOptionalCallback):

    window->toFront (false);  // need to do this after making it modal, or it could
                              // be stuck behind other comps that are already modal..

to

    window->toFront (true);  // need to do this after making it modal, or it could
                             // be stuck behind other comps that are already modal..

Will this have any side effects elsewhere?

Thanks,
Stian