Fixed OpDialogue foreground result processing.

When executing in the foreground, it would return to the main parameters pane immediately rather than displaying the result or closing.