Qmainwindow Close, Clicking 'Ok' button closes a currently opened dialog window and opens another.