Fix crash when server source select dialogs go into background on Mac