fixes reload dialog on wayland

avoid that after initial triggering this repaint and
more of main window is destroyed

BUG: 440583
2 jobs for master in 3 minutes and 7 seconds (queued for 3 seconds)