fileDialog.open() does *not* block, so we need to move the sending to onAccepted. Not sure why I thought this ever worked. BUG: 423975 (cherry picked from commit 198789e6)