Allow the modal dialog to have ok/cancel buttons as well.
According to boud, some desktop enviroments have no close button on dialogs.
Ref T2438