You could also keep a single connection but connect to a slot which then calls the right method depending on your application's state.

Cheers,
_