On Tue, 28 May 2019 21:23:59 GMT, Alex X wrote:

dialog.showAll();

This needs to be followed by:

dialog.destroy();

Just a guess without seeing your source in its entirety.