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.
Merge pull request #1023 from johnhaddon/opDialogueFix

Fixed OpDialogue foreground result processing.