lamperi/pokemon-online — comment on commit f7f1f345be9bc355360f3f67a786314902390c70
File:  line 0
By coyotte508:

If you want to do the same for BaseBattleWindow, it closes when the server tells it to close, via the signal spectatingBattleFinished() which is connected to the slot stopWatching