fixes reload dialog on wayland
avoid that after initial triggering this repaint and more of main window is destroyed
Way to reproduce:
- open kate
- activate in Settings -> Behavior -> Use a separate dialog for handling....
- open some file there
- echo something into that file in some shell
- some dialog will show up (or not) after focusing again the view
- afterwards for me repaint and more is totally broken inside the text editor window
CCing @davidedmundson @apol