Fix SaveStateReaction when server are disconnected
This MR fixes #22529 (closed)
When server are disconnected (for example after an exception is thrown), they should not be used to create the pqFileDialog
object.
This MR proposes to add a parameter named serverDisconnection (boolean) to the pqSaveStateReaction::saveState
method. This parameter has a false default value.
After server disconnection, the pqSaveStateReaction::saveState
method is called with a parameter set to true, preventing the use of server to create the pqFileDialog
object.
I did not add a test for that because i don't think it is possible.